Commit d22f833a authored by con's avatar con
Browse files

Fixes: - Avoid some annoying debug output.

Details:  - No stupid "true" and "namespace bla already registered"
output anymore.
parent d8005df0
......@@ -98,7 +98,7 @@ void HelpManager::registerDocumentation(const QStringList &fileNames)
}
}
if (needsSetup)
qDebug() << m_helpEngine->setupData();
m_helpEngine->setupData();
}
HelpPlugin::HelpPlugin() :
......@@ -450,9 +450,12 @@ void HelpPlugin::extensionsInitialized()
#endif
QHelpEngineCore hc(fi.absoluteFilePath());
hc.setupData();
if (!hc.registerDocumentation(qchFileName))
qDebug() << hc.error();
needsSetup = true;
QString fileNamespace = QHelpEngineCore::namespaceName(qchFileName);
if (!fileNamespace.isEmpty() && !hc.registeredDocumentations().contains(fileNamespace)) {
if (!hc.registerDocumentation(qchFileName))
qDebug() << hc.error();
needsSetup = true;
}
}
int i = m_helpEngine->customValue(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment