diff options
author | Alain Magloire | 2002-11-23 22:36:14 +0000 |
---|---|---|
committer | Alain Magloire | 2002-11-23 22:36:14 +0000 |
commit | e6185f1ac6e33f0e4dc60dad1ac60d7d141310ec (patch) | |
tree | 8d84f9c0b0e881ad480288a95d547d577c9c775c /launch | |
parent | 349c933d9cb5a64d5724596ffcc2678534382530 (diff) | |
download | org.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.java | 9 |
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); + } } } } |