check the collection file for updates

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

Reviewed-By: ck
This commit is contained in:
Maurice Kalinowski
2009-10-21 12:37:26 +02:00
parent c9f9310bb1
commit 6c5cf1c32a

View File

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