Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2008-06-25 21:30:27 +0000
committerChris Goldthorpe2008-06-25 21:30:27 +0000
commit4f6688bb22154e03d47442996ea2c45b66b3e8ed (patch)
tree6b1908cec44815ed927f08958dd759807676c36a
parent72dc4090f17afc29975c6ff70107cc1fa7205fd5 (diff)
downloadeclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.tar.gz
eclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.tar.xz
eclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.zip
Bug 235719 – [CheatSheet] Cheat sheet item property dialog=false doesn't work when using "Click to redo"
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
index e615e4314..1205ced1a 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
@@ -970,9 +970,8 @@ public class CheatSheetViewer implements ICheatSheetViewer, IMenuContributor {
* @return whether the current item opens a modal dialog
*/
private boolean isInDialogItem() {
- ViewItem item = getViewItemAtIndex(currentItemNum);
- if (item != null) {
- return item.getItem().isDialog();
+ if (currentItem != null) {
+ return currentItem.getItem().isDialog();
}
return false;
}

Back to the top