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:
parent
349c933d9c
commit
e6185f1ac6
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue