[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Mon Aug 9 22:51:03 UTC 2004


CVS commit by okellogg: 

The previous fix for 86734 was hacky, here's the Real Thing.


  M +1 -3      class.cpp   1.38
  M +0 -6      umllistviewitem.cpp   1.50


--- kdesdk/umbrello/umbrello/class.cpp  #1.37:1.38
@@ -308,6 +308,4 @@ bool UMLClass::loadSpecialized(QDomEleme
                         return false;
                 addAttribute(pAtt);
-                // connect( pAtt,SIGNAL(modified()),this,SIGNAL(modified()));
-                // m_AttsList.append( pAtt );
                 return true;
         } else if (tag == "template") {
@@ -317,5 +315,5 @@ bool UMLClass::loadSpecialized(QDomEleme
                         return false;
                 }
-                m_TemplateList.append(newTemplate);
+                addTemplate(newTemplate);
                 return true;
         } else if (tag == "stereotype") {

--- kdesdk/umbrello/umbrello/umllistviewitem.cpp  #1.49:1.50
@@ -473,10 +473,4 @@ void UMLListViewItem::saveToXMI( QDomDoc
                 // not have a model counterpart thus their label is saved here.
                 itemElement.setAttribute( "label", m_Label );
-        } else if (m_pObject->getBaseType() == ot_Stereotype
-                || m_pObject->getBaseType() == ot_Template) {
-                kdDebug() << "FIXME: UMLListViewItem::saveToXMI(): saving local label "
-                          << m_Label << " because stereotype/template loading "
-                          << "does not yet generate the appropriate signals" << endl;
-                itemElement.setAttribute( "label", m_Label );
         } else if (m_pObject->getID() == -1) {
                 if (m_Label.isEmpty()) {






More information about the umbrello-devel mailing list