Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline

This commit is contained in:
hjk
2009-01-27 17:11:56 +01:00

View File

@@ -98,7 +98,7 @@ void HelpManager::registerDocumentation(const QStringList &fileNames)
} }
} }
if (needsSetup) if (needsSetup)
qDebug() << m_helpEngine->setupData(); m_helpEngine->setupData();
} }
HelpPlugin::HelpPlugin() : HelpPlugin::HelpPlugin() :
@@ -450,9 +450,12 @@ void HelpPlugin::extensionsInitialized()
#endif #endif
QHelpEngineCore hc(fi.absoluteFilePath()); QHelpEngineCore hc(fi.absoluteFilePath());
hc.setupData(); hc.setupData();
if (!hc.registerDocumentation(qchFileName)) QString fileNamespace = QHelpEngineCore::namespaceName(qchFileName);
qDebug() << hc.error(); if (!fileNamespace.isEmpty() && !hc.registeredDocumentations().contains(fileNamespace)) {
needsSetup = true; if (!hc.registerDocumentation(qchFileName))
qDebug() << hc.error();
needsSetup = true;
}
} }
int i = m_helpEngine->customValue( int i = m_helpEngine->customValue(