Added bool cast fixing compiler crash

This commit is contained in:
Magnus Hellströmer
2024-09-08 20:16:07 +02:00
parent d3f206a387
commit 9127937bee

View File

@@ -103,7 +103,7 @@ bool TitleBlockTemplate::loadFromXmlFile(const QString &filepath) {
// parse its content as XML
QDomDocument xml_doc;
bool xml_parsing = xml_doc.setContent(&template_file);
bool xml_parsing = (bool)xml_doc.setContent(&template_file);
if (!xml_parsing) {
return(false);
}