forked from qt-creator/qt-creator
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:
@@ -639,6 +639,16 @@ void HelpPlugin::extensionsInitialized()
|
|||||||
needsSetup = true;
|
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)
|
if (needsSetup)
|
||||||
m_helpEngine->setupData();
|
m_helpEngine->setupData();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user