From 4c5364f22ccda37246ea7fa3667dbb433b7a9487 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 24 Oct 2013 12:39:40 +0200 Subject: [PATCH] SearchEverywhere is not accessible when no tabs are open --- .../src/com/intellij/ide/actions/SearchEverywhereAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java index ecd20dccdedd..fb9ab5fb903d 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java @@ -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;