diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-05-28 15:47:26 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-05-30 14:21:48 +0200 |
commit | 0f05aa42daec491b46195a51eb0cd03bb4aa249a (patch) | |
tree | 9cbf86b980e1aaaa04e26fd12bb3a91d02014262 | |
parent | a9e1eef089cfddf71767b7e9798fbb0fd0b31168 (diff) | |
download | qt-creator-0f05aa42daec491b46195a51eb0cd03bb4aa249a.tar.gz |
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: Eike Ziller <eike.ziller@digia.com>
-rw-r--r-- | src/plugins/coreplugin/rightpane.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/rightpane.cpp b/src/plugins/coreplugin/rightpane.cpp index f23bb9ae21..601f1bb867 100644 --- a/src/plugins/coreplugin/rightpane.cpp +++ b/src/plugins/coreplugin/rightpane.cpp @@ -145,6 +145,8 @@ RightPaneWidget *RightPaneWidget::instance() void RightPaneWidget::setWidget(QWidget *widget) { + if (widget == m_widget) + return; clearWidget(); m_widget = widget; if (m_widget) { |