mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-18 10:29:57 +02:00
fix load issue
This commit is contained in:
@@ -154,9 +154,9 @@ bool TerminalData::fromXml (const QDomElement &xml_element) // RETURNS True
|
|||||||
m_orientation = orientationFromString(o);
|
m_orientation = orientationFromString(o);
|
||||||
|
|
||||||
QString type;
|
QString type;
|
||||||
if (propertyString(xml_element, "type", &type))
|
if (propertyString(xml_element, "type", &type) == PropertyFlags::Success)
|
||||||
return false;
|
m_type = typeFromString(type);
|
||||||
m_type = typeFromString(type);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,8 +164,9 @@ bool TerminalData::valideXml(const QDomElement& xml_element) {
|
|||||||
if (propertyDouble(xml_element, "x"))
|
if (propertyDouble(xml_element, "x"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (propertyString(xml_element, "type"))
|
// Old projects do not have this property.
|
||||||
return false;
|
// if (propertyString(xml_element, "type"))
|
||||||
|
// return false;
|
||||||
|
|
||||||
|
|
||||||
// legacy elements do not have an uuid
|
// legacy elements do not have an uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user