Fix warning about reading XML without explicit file opening. This was implicit up to now and will go away in future Qt versions.

This commit is contained in:
Andre Rummler
2026-09-24 12:32:47 +02:00
parent ddfa234943
commit d3a9adbe44
@@ -653,9 +653,16 @@ QDomElement ElementsLocation::xml() const
if (!m_project)
{
QFile file (m_file_system_path);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return QDomElement();
QDomDocument docu;
if (docu.setContent(&file))
{
file.close();
return docu.documentElement();
}
file.close();
}
else
{