Commit 0f05aa42 authored by Eike Ziller's avatar Eike Ziller
Browse files

Help: Fix that context help does not end up with focus



When opening a help url with anchor for context help, the help viewer
would loose focus, breaking behavior like pressing F1 twice to go to
help mode.

Task-number: QTCREATORBUG-9093
Change-Id: Ib6b6ecb4f6bec63f545c1f4ff973d878547f3ee1
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent a9e1eef0
...@@ -145,6 +145,8 @@ RightPaneWidget *RightPaneWidget::instance() ...@@ -145,6 +145,8 @@ RightPaneWidget *RightPaneWidget::instance()
void RightPaneWidget::setWidget(QWidget *widget) void RightPaneWidget::setWidget(QWidget *widget)
{ {
if (widget == m_widget)
return;
clearWidget(); clearWidget();
m_widget = widget; m_widget = widget;
if (m_widget) { if (m_widget) {
......
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