return value has been fixed

This commit is contained in:
Arin Alex
2023-05-01 09:26:41 +03:00
parent 289ad33c07
commit f1903147a6
2 changed files with 4 additions and 3 deletions

View File

@@ -80,7 +80,8 @@ bool XMLWriter::setContent(QString fileName)
{
QFile xmlFile(fileName);
if (xmlFile.open(QFile::ReadOnly)){
return m_doc->setContent(&xmlFile);
m_doc->setContent(&xmlFile);
return true;
}
return false;
}