1
0
Fork 0
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:
Jonah Graham 2016-05-05 12:59:48 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent dff6b3bae3
commit e091657eaf

View file

@ -872,9 +872,7 @@ public class FileListControl {
delDir = MessageDialog.openQuestion(list.getShell(), title, quest);
}
if (delDir){
int i;
while ((i = list.getSelectionIndex()) != -1)
list.remove(i);
list.remove(list.getSelectionIndices());
checkNotificationNeeded();
}
selectionChanged();