Skip to content
Snippets Groups Projects
Commit 6c5cf1c3 authored by Maurice Kalinowski's avatar Maurice Kalinowski
Browse files

check the collection file for updates

- In case documentation has been added to the collection,
  creator registers the documentation on startup.

Reviewed-By: ck
parent c9f9310b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment