Commit 212836d5 authored by Eike Ziller's avatar Eike Ziller

Help: Fix check if help viewer currently has focus.

Fixes a little issue that after opening context help, clicking into the
context help viewer, and pressing F1, the help viewer would show "No
documentation available" instead of opening help mode.

Change-Id: I071c92946214680e82b1f2982b62cc909a272ad5
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 7c632f65
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment