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:
parent
f08ddefac7
commit
293207b503
@ -4301,8 +4301,6 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
|
|||||||
return;
|
return;
|
||||||
QString fileName = manifest +"-manifest.xml";
|
QString fileName = manifest +"-manifest.xml";
|
||||||
QFile file(outputDir() + QLatin1Char('/') + fileName);
|
QFile file(outputDir() + QLatin1Char('/') + fileName);
|
||||||
if (!file.open(QFile::WriteOnly | QFile::Text))
|
|
||||||
return ;
|
|
||||||
bool demos = false;
|
bool demos = false;
|
||||||
if (manifest == "demos")
|
if (manifest == "demos")
|
||||||
demos = true;
|
demos = true;
|
||||||
@ -4323,7 +4321,7 @@ void HtmlGenerator::generateManifestFile(QString manifest, QString element)
|
|||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
if (!proceed)
|
if (!proceed || !file.open(QFile::WriteOnly | QFile::Text))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QXmlStreamWriter writer(&file);
|
QXmlStreamWriter writer(&file);
|
||||||
|
Loading…
Reference in New Issue
Block a user