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>
This commit is contained in:
Eike Ziller
2019-01-22 14:53:45 +01:00
parent 7dded36d1d
commit 809416c993
3 changed files with 11 additions and 19 deletions

View File

@@ -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)