mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 493070: [GTK3] stop removing all items from list
in GTK3 when the current selection is removed from the org.eclipse.swt.widgets.List the selection is updated to another item, on GTK2 and Windows the list stops having a selection. This change updates the code to safely delete all selected items. Change-Id: Iedc99db89af117a04ad163190bdda0f8720eb2a6 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
This commit is contained in:
parent
dff6b3bae3
commit
e091657eaf
1 changed files with 1 additions and 3 deletions
|
@ -872,9 +872,7 @@ public class FileListControl {
|
||||||
delDir = MessageDialog.openQuestion(list.getShell(), title, quest);
|
delDir = MessageDialog.openQuestion(list.getShell(), title, quest);
|
||||||
}
|
}
|
||||||
if (delDir){
|
if (delDir){
|
||||||
int i;
|
list.remove(list.getSelectionIndices());
|
||||||
while ((i = list.getSelectionIndex()) != -1)
|
|
||||||
list.remove(i);
|
|
||||||
checkNotificationNeeded();
|
checkNotificationNeeded();
|
||||||
}
|
}
|
||||||
selectionChanged();
|
selectionChanged();
|
||||||
|
|
Loading…
Add table
Reference in a new issue