[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat May 22 08:23:02 UTC 2004
CVS commit by okellogg:
saveToXMI(): Only save local m_Label if m_pObject is NULL.
M +5 -2 umllistviewitem.cpp 1.38
--- kdesdk/umbrello/umbrello/umllistviewitem.cpp #1.37:1.38
@@ -447,6 +447,9 @@ void UMLListViewItem::saveToXMI( QDomDoc
itemElement.setAttribute( "id", getID() );
itemElement.setAttribute( "type", m_Type );
- //if (m_pObject == NULL) //activate when UMLObject constructor emits sigObjectCreated
+ if (m_pObject == NULL) {
+ kdDebug() << "UMLListViewItem::saveToXMI: saving local label "
+ << m_Label << " because m_pObject is NULL" << endl;
itemElement.setAttribute( "label", m_Label );
+ }
itemElement.setAttribute( "open", isOpen() );
UMLListViewItem * childItem = static_cast<UMLListViewItem *> ( firstChild() );
More information about the umbrello-devel
mailing list