From 4ebcf52de96c4a99bb3368128f9a1c7d59f6f9f4 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 23 Apr 2019 19:54:52 +0200 Subject: [PATCH] Core: Disable the "New Search" tool button during visible search panel The "New Search" tool button has no effect while the search panel is shown. Let's disable it during that time, and make it behave like the expand/collapse tool button. Change-Id: I47b78e1955e10186addf302418d8b9807fd5feae Reviewed-by: Eike Ziller --- src/plugins/coreplugin/find/searchresultwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/coreplugin/find/searchresultwindow.cpp b/src/plugins/coreplugin/find/searchresultwindow.cpp index b064c11bb55..577bd946e60 100644 --- a/src/plugins/coreplugin/find/searchresultwindow.cpp +++ b/src/plugins/coreplugin/find/searchresultwindow.cpp @@ -167,11 +167,13 @@ namespace Internal { if (focus) m_widget->currentWidget()->setFocus(); m_expandCollapseAction->setEnabled(false); + m_newSearchButton->setEnabled(false); } else { if (focus) m_searchResultWidgets.at(visibleSearchIndex())->setFocusInternally(); m_searchResultWidgets.at(visibleSearchIndex())->notifyVisibilityChanged(true); m_expandCollapseAction->setEnabled(true); + m_newSearchButton->setEnabled(true); } q->navigateStateChanged(); }