From 6c5cf1c32a6f792d34f9acac9c9f48ddfaa5847d Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski <maurice.kalinowski@nokia.com> Date: Wed, 21 Oct 2009 12:37:26 +0200 Subject: [PATCH] check the collection file for updates - In case documentation has been added to the collection, creator registers the documentation on startup. Reviewed-By: ck --- src/plugins/help/helpplugin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 8421dca38d2..b7382315419 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -639,6 +639,16 @@ void HelpPlugin::extensionsInitialized() needsSetup = true; } + QString addedDocs = m_helpEngine->customValue(QLatin1String("AddedDocs")).toString(); + if (!addedDocs.isEmpty()) { + QStringList documentationToAdd = addedDocs.split(";"); + foreach(QString item, documentationToAdd) { + needsSetup = true; + m_helpEngine->registerDocumentation(item); + } + m_helpEngine->removeCustomValue(QLatin1String("AddedDocs")); + } + if (needsSetup) m_helpEngine->setupData(); -- GitLab