1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00

Do not show the selection dialog if list is empty

This commit is contained in:
Alain Magloire 2002-11-23 22:36:14 +00:00
parent 349c933d9c
commit e6185f1ac6

View file

@ -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);
}
}
}
}