mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: Fix ISE on calling "Group By" changes action with null input event
For instance, by mnemonic from quick actions popup IDEA-192793 EA-121361
This commit is contained in:
+2
-2
@@ -24,10 +24,10 @@ class SelectChangesGroupingActionGroup : DefaultActionGroup(), DumbAware {
|
||||
}
|
||||
|
||||
val popup = SelectChangesGroupingActionPopup(group, e.dataContext)
|
||||
val component = e.inputEvent.component
|
||||
val component = e.inputEvent?.component
|
||||
when (component) {
|
||||
is ActionButtonComponent -> popup.showUnderneathOf(component)
|
||||
else -> popup.showInCenterOf(component)
|
||||
else -> popup.showInBestPositionFor(e.dataContext)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user