Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2002-06-05 20:51:39 +0000
committerDarin Swanson2002-06-05 20:51:39 +0000
commit3c17f299afb68e75e9acf592e26ff3fd7283bb49 (patch)
treeeb38c41eff177135c814ce97129e8a6a2d059215
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
-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