SearchEverywhere is not accessible when no tabs are open

This commit is contained in:
Konstantin Bulenkov
2013-10-24 12:42:12 +02:00
parent 81591ab8dd
commit 4c5364f22c
@@ -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;