Skip to content

Commit 9bcf0a2

Browse files
committed
Fix Terminate & Remove showing every time
This commit will enable Terminate & Remove option in debug view context only if there's a valid selection
1 parent 48d7314 commit 9bcf0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/TerminateAndRemoveAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void debugContextChanged(DebugContextEvent event) {
109109
// enable the action, which whill just remove the terminated launches (bug 324959).
110110
fCanTerminate = !isAllTerminated;
111111
if (isAllTerminated) {
112-
setEnabled(true);
112+
setEnabled(!context.isEmpty());
113113
} else {
114114
super.debugContextChanged(event);
115115
}

0 commit comments

Comments
 (0)