[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue May 25 11:44:07 UTC 2004


CVS commit by okellogg: 

saveToXMI(): We still can't do without saving m_Label, else the attribute and
 operation names are gone on subsequent load. Thanks to Achim for noticing


  M +5 -1      umllistviewitem.cpp   1.39


--- kdesdk/umbrello/umbrello/umllistviewitem.cpp  #1.38:1.39
@@ -447,9 +447,13 @@ void UMLListViewItem::saveToXMI( QDomDoc
         itemElement.setAttribute( "id", getID() );
         itemElement.setAttribute( "type", m_Type );
+        /* UNDER CONSTRUCTION: Activate when the restoring of attribute/
+           operation names in the listview is possible using just the
+           model object loading mechanism.
         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