From f6c1a47d6286cae7625256924b7b3eed4f7a43c8 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sat, 13 Mar 2021 17:27:12 +0100 Subject: [PATCH] do not store invalid uuid, better to not store and use legacy approach --- sources/properties/terminaldata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/properties/terminaldata.cpp b/sources/properties/terminaldata.cpp index dd3f094bd..f6ff53bdf 100644 --- a/sources/properties/terminaldata.cpp +++ b/sources/properties/terminaldata.cpp @@ -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",