mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SearchEverywhere is not accessible when no tabs are open
This commit is contained in:
@@ -510,7 +510,9 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
}
|
||||
if (e == null) return;
|
||||
myContextComponent = PlatformDataKeys.CONTEXT_COMPONENT.getData(e.getDataContext());
|
||||
if (myContextComponent == null) return;
|
||||
if (myContextComponent == null) {
|
||||
myContextComponent = mySearchLabel;
|
||||
}
|
||||
final Window wnd = SwingUtilities.windowForComponent(myContextComponent);
|
||||
if (wnd == null || wnd.getParent() != null) return;
|
||||
myActionEvent = e;
|
||||
|
||||
Reference in New Issue
Block a user