1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00

small buglet

This commit is contained in:
David Inglis 2002-08-15 15:47:38 +00:00
parent 040b0517dc
commit 4cfbba8bb8

View file

@ -244,7 +244,7 @@ public class CDebuggerTab extends CLaunchConfigurationTab {
*/
protected ILaunchConfigurationTab getTabForCurrentDebugger() {
int selectedIndex = fDlist.getSelectionIndex();
if (selectedIndex > 0) {
if (selectedIndex >= 0) {
ICDebugConfiguration dbgCfg = (ICDebugConfiguration) fDinfo.get(selectedIndex);
return CDebugUIPlugin.getDefault().getDebuggerPage(dbgCfg.getID());
}