From 6ce18c8dcb6a03472eb18bcddb6b010857300c78 Mon Sep 17 00:00:00 2001 From: kh1 <qt-info@nokia.com> Date: Thu, 9 Sep 2010 15:53:46 +0200 Subject: [PATCH] The sidebar viewer should not be allowed to open a new page. --- src/plugins/help/helpplugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index ddce6a78d9a..a74576aceee 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -567,6 +567,9 @@ void HelpPlugin::createRightPaneContextViewer() rightPaneLayout->addWidget(rightPaneStyledBar); m_helpViewerForSideBar = new HelpViewer(qreal(0.0), rightPaneSideBar); +#if !defined(QT_NO_WEBKIT) + m_helpViewerForSideBar->pageAction(QWebPage::OpenLinkInNewWindow)->setVisible(false); +#endif rightPaneLayout->addWidget(m_helpViewerForSideBar); rightPaneLayout->addWidget(new Core::FindToolBarPlaceHolder(rightPaneSideBar)); rightPaneSideBar->setFocusProxy(m_helpViewerForSideBar); -- GitLab