qdoc: Delayed the examples manifest file creation

This avoids the creation of demos-manifest.xml if there
are no demos in the repo.

Change-Id: I4d3bbe4540f4b1532c0d51f62b8d1494864a7b1c
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Venu 2014-11-04 11:06:35 +01:00 committed by Venugopal Shivashankar
parent f08ddefac7
commit 293207b503

View File

@ -4301,8 +4301,6 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
return;
QString fileName = manifest +"-manifest.xml";
QFile file(outputDir() + QLatin1Char('/') + fileName);
if (!file.open(QFile::WriteOnly | QFile::Text))
return ;
bool demos = false;
if (manifest == "demos")
demos = true;
@ -4323,7 +4321,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
}
++i;
}
if (!proceed)
if (!proceed || !file.open(QFile::WriteOnly | QFile::Text))
return;
QXmlStreamWriter writer(&file);