mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Do not show the selection dialog if list is empty
This commit is contained in:
parent
349c933d9c
commit
e6185f1ac6
1 changed files with 5 additions and 4 deletions
|
@ -319,10 +319,11 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
|
|||
}
|
||||
if (results.size() == 0) {
|
||||
MessageDialog.openError(getShell(), "C Application Launcher", "Launch failed no binaries"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
IBinary bin = chooseBinary(results, mode);
|
||||
if (bin != null) {
|
||||
launch(bin, mode);
|
||||
} else {
|
||||
IBinary bin = chooseBinary(results, mode);
|
||||
if (bin != null) {
|
||||
launch(bin, mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue