Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorAlain Magloire2002-11-23 22:36:14 +0000
committerAlain Magloire2002-11-23 22:36:14 +0000
commite6185f1ac6e33f0e4dc60dad1ac60d7d141310ec (patch)
tree8d84f9c0b0e881ad480288a95d547d577c9c775c /launch
parent349c933d9cb5a64d5724596ffcc2678534382530 (diff)
downloadorg.eclipse.cdt-e6185f1ac6e33f0e4dc60dad1ac60d7d141310ec.tar.gz
org.eclipse.cdt-e6185f1ac6e33f0e4dc60dad1ac60d7d141310ec.tar.xz
org.eclipse.cdt-e6185f1ac6e33f0e4dc60dad1ac60d7d141310ec.zip
Do not show the selection dialog if list is empty
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
index 3f9e9406014..67599efbbd8 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
@@ -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);
+ }
}
}
}

Back to the top