diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-03-04 14:04:07 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-03-04 14:04:07 +0100 |
commit | 3ba9db48edcf13643fe744ffa4a46a4e03ab4990 (patch) | |
tree | 11a43e4ffb884719999015280927e23fce29a2fa /src/plugins/help | |
parent | 73c5eae31103c7906c5eb70bc4df0c8af787d9b8 (diff) | |
parent | 3ee64ed69938cce93a7cfd90926f7d8b91782366 (diff) | |
download | qt-creator-3ba9db48edcf13643fe744ffa4a46a4e03ab4990.tar.gz |
Merge remote-tracking branch 'origin/3.1'
Conflicts:
qtcreator.pri
qtcreator.qbs
Change-Id: I5b27eba0a9536d3e6867577ebf2b59d58a13b827
Diffstat (limited to 'src/plugins/help')
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 724baef15e..7001cfe159 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -868,9 +868,12 @@ void HelpPlugin::activateContext() links = HelpManager::linksForIdentifier(m_idFromContext); if (links.isEmpty()) { // Maybe this is already an URL... - QUrl url(m_idFromContext); - if (url.isValid()) - links.insert(m_idFromContext, m_idFromContext); + // Require protocol specifier, otherwise most strings would be 'local file names' + if (m_idFromContext.contains(QLatin1Char(':'))) { + QUrl url(m_idFromContext); + if (url.isValid()) + links.insert(m_idFromContext, m_idFromContext); + } } } |