1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 15:35:24 +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,12 +319,13 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
} }
if (results.size() == 0) { if (results.size() == 0) {
MessageDialog.openError(getShell(), "C Application Launcher", "Launch failed no binaries"); //$NON-NLS-1$ //$NON-NLS-2$ MessageDialog.openError(getShell(), "C Application Launcher", "Launch failed no binaries"); //$NON-NLS-1$ //$NON-NLS-2$
} } else {
IBinary bin = chooseBinary(results, mode); IBinary bin = chooseBinary(results, mode);
if (bin != null) { if (bin != null) {
launch(bin, mode); launch(bin, mode);
} }
} }
} }
}
} }