mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-30 07:44:13 +02:00
287b532953
Since Qt 6.5, QDomDocument::setContent() returns a ParseResult struct with an *explicit* operator bool(), so 'bool x = doc.setContent(...)' (copy-initialization) no longer compiles - explicit conversions aren't considered there. This exact issue was already fixed in titleblocktemplate.cpp by dropping the intermediate bool and testing the call directly in the if condition (contextual bool conversion in an if() is fine even for an explicit operator bool), but this second occurrence in templatescollection.cpp used the same pattern and was missed. Applying the same fix here for consistency.