diff options
author | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-11-10 11:55:05 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-11-10 16:55:11 +0100 |
commit | da14d8610497ea5a272fae715efa18fc8643b9d7 (patch) | |
tree | 99c3b8189404d6405e7162c6edcadb904372055e /src/plugins/help | |
parent | 8fcb4d808415eab5f9b02fa448b03dff60191d9a (diff) | |
download | qt-creator-da14d8610497ea5a272fae715efa18fc8643b9d7.tar.gz |
Implement context help for pro file editor
Task-number: QTCREATORBUG-6325
Change-Id: Ie8b2eb582eb527eac6af56d0c69a8ae1dafdc1df
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/help')
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 04e0645b9b..addc4b9909 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -883,6 +883,12 @@ void HelpPlugin::activateContext() if (IContext *context = m_core->currentContextObject()) { m_idFromContext = context->contextHelpId(); links = Core::HelpManager::instance()->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); + } } if (HelpViewer* viewer = viewerForContextMode()) { |