mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
do not store invalid uuid, better to not store and use legacy approach
This commit is contained in:
@@ -98,7 +98,8 @@ 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()));
|
||||
|
||||
xml_element.setAttribute("uuid", m_uuid.toString());
|
||||
if (!m_uuid.isNull())
|
||||
xml_element.setAttribute("uuid", m_uuid.toString());
|
||||
xml_element.setAttribute("name", m_name);
|
||||
|
||||
xml_element.setAttribute("orientation",
|
||||
|
||||
Reference in New Issue
Block a user