mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-156293 NPE at com.intellij.ui.mac.MacGestureSupportForEditor$1.pressure
This commit is contained in:
@@ -58,15 +58,15 @@ public class MacGestureSupportForEditor {
|
||||
0);
|
||||
action.beforeActionPerformedUpdate(actionEvent);
|
||||
|
||||
//if (presentation.isEnabled()) {
|
||||
actionManager.fireBeforeActionPerformed(action, dataContext, actionEvent);
|
||||
final Component context = PlatformDataKeys.CONTEXT_COMPONENT.getData(dataContext);
|
||||
if (presentation.isEnabled()) {
|
||||
actionManager.fireBeforeActionPerformed(action, dataContext, actionEvent);
|
||||
final Component context = PlatformDataKeys.CONTEXT_COMPONENT.getData(dataContext);
|
||||
|
||||
// if (context != null && !context.isShowing()) continue;
|
||||
if (context != null && !context.isShowing()) continue;
|
||||
|
||||
action.actionPerformed(actionEvent);
|
||||
action.actionPerformed(actionEvent);
|
||||
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
e.consume();
|
||||
|
||||
Reference in New Issue
Block a user