aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/helpwidget.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-01-22 14:53:45 +0100
committerEike Ziller <eike.ziller@qt.io>2019-01-24 14:03:38 +0000
commit809416c993afe9a9c7dac3c2cad784864f39a2cd (patch)
tree77059322a80ef85abe71ad09d074bc15bf15b877 /src/plugins/help/helpwidget.cpp
parent7dded36d1d92643f809e77bc8025fa2833b01061 (diff)
Help: Simplify and unify code
The help widget doesn't need to resolve the external help viewer instance manually, we have an entrypoint for that already. Change-Id: I6875c434428baac3f1883813207cf318d7d3dc09 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/help/helpwidget.cpp')
-rw-r--r--src/plugins/help/helpwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp
index 355cb460ab7..d07cf9e1458 100644
--- a/src/plugins/help/helpwidget.cpp
+++ b/src/plugins/help/helpwidget.cpp
@@ -69,8 +69,7 @@ namespace Internal {
static void openUrlInWindow(const QUrl &url)
{
- HelpViewer *viewer = HelpPlugin::viewerForHelpViewerLocation(Core::HelpManager::ExternalHelpAlways);
- HelpPlugin::showInHelpViewer(url, viewer);
+ HelpPlugin::showHelpUrl(url, Core::HelpManager::ExternalHelpAlways);
}
static bool isBookmarkable(const QUrl &url)