[Uml-devel] KDE/kdesdk/umbrello/umbrello

Sharan Rao sharanrao at gmail.com
Fri May 18 08:40:59 UTC 2007


SVN commit 665854 by sharan:

remove the check for classifer list item, as control reaches here only when that check has been passed previously 
in this function.


 M  +3 -6      umllistview.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #665853:665854
@@ -2160,12 +2160,9 @@
     item->setText( text );
     ensureItemVisible(item);
 
-    // if it's a ClassifierListItem add it to the childObjectMap of the parent
-    if ( type==Uml::ot_Template ||type == Uml::ot_Operation
-         || type == Uml::ot_Attribute || type == Uml::ot_EntityAttribute ) {
-        UMLClassifierListItem* classifierItem = static_cast<UMLClassifierListItem*>( newObject );
-      static_cast<UMLListViewItem*>( item->parent() )->addClassifierListItem(classifierItem, item );
-    }
+    // as it's a ClassifierListItem add it to the childObjectMap of the parent
+    UMLClassifierListItem* classifierListItem = static_cast<UMLClassifierListItem*>( newObject );
+    static_cast<UMLListViewItem*>( item->parent() )->addClassifierListItem(classifierListItem, item );
 
     m_bCreatingChildObject = false;
 




More information about the umbrello-devel mailing list