IDEA-80417

This commit is contained in:
Anna Kozlova
2012-01-27 14:34:10 +04:00
parent e1ee8e56a8
commit c45ead89cd
@@ -53,7 +53,11 @@ public abstract class UndoRedoAction extends DumbAwareAction {
}
UndoManager undoManager = getUndoManager(editor, dataContext);
presentation.setEnabled(undoManager != null && isAvailable(editor, undoManager));
if (undoManager == null) {
presentation.setEnabled(false);
return;
}
presentation.setEnabled(isAvailable(editor, undoManager));
Pair<String, String> pair = getActionNameAndDescription(editor, undoManager);