diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 0876d5138f9..27268f8fc53 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -875,7 +875,8 @@ void HelpPlugin::activateContext() createRightPaneContextViewer(); RightPanePlaceHolder *placeHolder = RightPanePlaceHolder::current(); - if (placeHolder && m_helpViewerForSideBar->hasFocus()) { + if (placeHolder && qApp->focusWidget() + && qApp->focusWidget() == m_helpViewerForSideBar->focusWidget()) { switchToHelpMode(); return; }