diff --git a/sources/editor/graphicspart/partterminal.cpp b/sources/editor/graphicspart/partterminal.cpp index b69455c8f..c5830eb8e 100644 --- a/sources/editor/graphicspart/partterminal.cpp +++ b/sources/editor/graphicspart/partterminal.cpp @@ -72,6 +72,9 @@ bool PartTerminal::fromXmlPriv(const QDomElement &xml_elmt) { */ void PartTerminal::toXmlPriv(QDomElement& e) const { + if (!d->m_uuid.isNull()) + e.setAttribute("uuid", d->m_uuid.toString()); + d->m_pos = pos(); QDomDocument doc = e.ownerDocument(); diff --git a/sources/properties/terminaldata.cpp b/sources/properties/terminaldata.cpp index b2ba83d34..a8c02b106 100644 --- a/sources/properties/terminaldata.cpp +++ b/sources/properties/terminaldata.cpp @@ -98,8 +98,6 @@ void TerminalData::toXmlPriv(QDomElement& xml_element) const xml_element.setAttribute("x", m_pos.x()); xml_element.setAttribute("y", m_pos.y()); - if (!m_uuid.isNull()) - xml_element.setAttribute("uuid", m_uuid.toString()); xml_element.setAttribute("name", m_name); xml_element.setAttribute("orientation", diff --git a/sources/qetgraphicsitem/terminal.cpp b/sources/qetgraphicsitem/terminal.cpp index a0e2b0c82..d6484524d 100644 --- a/sources/qetgraphicsitem/terminal.cpp +++ b/sources/qetgraphicsitem/terminal.cpp @@ -809,8 +809,8 @@ bool Terminal::valideXml(const QDomElement &terminal) */ bool Terminal::fromXmlPriv(const QDomElement &terminal) { QETXML::propertyString(terminal, "number", &number_terminal_); - QETXML::propertyBool(terminal, "nameHidden", &name_terminal_hidden); + QETXML::propertyUuid(terminal, "uuid", &d->m_uuid); if(!d->fromXml(terminal)) return false;