mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug fix
This commit is contained in:
parent
d31413d1fd
commit
f50fe22020
1 changed files with 3 additions and 5 deletions
|
@ -147,10 +147,9 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
|
|||
dialog.setInitialElementSelections(lst);
|
||||
|
||||
if (dialog.open() == Window.OK) {
|
||||
Object[] selected = dialog.getResult();
|
||||
if (selected != null && selected.length > 0) {
|
||||
Iterator it2 = objects.iterator();
|
||||
outer:
|
||||
Object[] selected = dialog.getResult(); // may be empty
|
||||
Iterator it2 = objects.iterator();
|
||||
outer:
|
||||
while(it2.hasNext()) {
|
||||
IResource res = (IResource)it2.next();
|
||||
IProject p = res.getProject();
|
||||
|
@ -186,7 +185,6 @@ outer:
|
|||
} catch (CoreException e) {}
|
||||
AbstractPage.updateViews(res);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue