From 9b8c0101be0dc1f5097240634468da89f8fa78a6 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sat, 10 Oct 2020 11:17:15 +0200 Subject: [PATCH] new method to load properties must be used, otherwise nothing valid will be read --- sources/qetproject.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 59d4bb5a6..1ceeced40 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -1425,7 +1425,11 @@ void QETProject::readDefaultPropertiesXml(QDomDocument &xml_project) { XRefProperties xrp; xrp.fromXml(elmt); - m_default_xref_properties.insert(elmt.attribute("type"), xrp); + QString type; + if (PropertiesInterface::propertyString(elmt, "type", &type) == PropertiesInterface::PropertyFlags::Success) + m_default_xref_properties.insert(type, xrp); + else + qDebug() << "xref Property was not added to m_default_xref_properties."; } } if (!conds_autonums.isNull())