do not store invalid uuid, better to not store and use legacy approach

This commit is contained in:
Martin Marmsoler
2021-03-13 17:27:12 +01:00
parent 001e93bc6f
commit f6c1a47d62

View File

@@ -98,6 +98,7 @@ void TerminalData::toXmlPriv(QDomElement& xml_element) const
xml_element.setAttribute("x", QString("%1").arg(q->scenePos().x()));
xml_element.setAttribute("y", QString("%1").arg(q->scenePos().y()));
if (!m_uuid.isNull())
xml_element.setAttribute("uuid", m_uuid.toString());
xml_element.setAttribute("name", m_name);