diff options
Diffstat (limited to 'src/plugins/find')
-rw-r--r-- | src/plugins/find/currentdocumentfind.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/find/currentdocumentfind.cpp b/src/plugins/find/currentdocumentfind.cpp index acbed55a96..6f4175416c 100644 --- a/src/plugins/find/currentdocumentfind.cpp +++ b/src/plugins/find/currentdocumentfind.cpp @@ -221,7 +221,10 @@ void CurrentDocumentFind::clearFindSupport() bool CurrentDocumentFind::setFocusToCurrentFindSupport() { if (m_currentFind && m_currentWidget) { - m_currentWidget->setFocus(); + QWidget *w = m_currentWidget->focusWidget(); + if (!w) + w = m_currentWidget; + w->setFocus(); return true; } return false; |