Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2002-06-05 16:51:39 -0400
committerDarin Swanson2002-06-05 16:51:39 -0400
commit3c17f299afb68e75e9acf592e26ff3fd7283bb49 (patch)
treeeb38c41eff177135c814ce97129e8a6a2d059215 /org.eclipse.debug.ui
parentf0d736f60a5b68ab4408fb9c2769efa7624ae505 (diff)
downloadeclipse.platform.debug-3c17f299afb68e75e9acf592e26ff3fd7283bb49.tar.gz
eclipse.platform.debug-3c17f299afb68e75e9acf592e26ff3fd7283bb49.tar.xz
eclipse.platform.debug-3c17f299afb68e75e9acf592e26ff3fd7283bb49.zip
Bug 19379 - Debug remembers selected state of toolbar entry even if it is no longer enabled
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
index 8f1aedbb0..1b88a3296 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
@@ -604,7 +604,9 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
if (id != null) {
Integer state= memento.getInteger(id);
if (state != null) {
- action.setChecked(state.intValue() == 1);
+ if (action.isEnabled()) {
+ action.setChecked(state.intValue() == 1);
+ }
}
}
}

Back to the top