mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-07 10:33:26 +02:00
Bug fix
This commit is contained in:
parent
d31413d1fd
commit
f50fe22020
1 changed files with 3 additions and 5 deletions
|
@ -147,8 +147,7 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
|
|||
dialog.setInitialElementSelections(lst);
|
||||
|
||||
if (dialog.open() == Window.OK) {
|
||||
Object[] selected = dialog.getResult();
|
||||
if (selected != null && selected.length > 0) {
|
||||
Object[] selected = dialog.getResult(); // may be empty
|
||||
Iterator it2 = objects.iterator();
|
||||
outer:
|
||||
while(it2.hasNext()) {
|
||||
|
@ -188,7 +187,6 @@ outer:
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IStructuredContentProvider createSelectionDialogContentProvider() {
|
||||
return new IStructuredContentProvider() {
|
||||
|
|
Loading…
Add table
Reference in a new issue