[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Fri Feb 28 11:25:16 UTC 2003


CVS commit by jriddell: 

Fixed bug (reported by Zoltan Bartco), diagrams created from right click menu
weren't actually created.


  M +6 -6      umllistview.cpp   1.12


--- kdesdk/umbrello/umbrello/umllistview.cpp  #1.11:1.12
@@ -131,25 +131,25 @@ void UMLListView::popupMenuSel(int sel) 
         switch(sel) {
                 case ListPopupMenu::mt_Activity_Diagram:
-                        addNewItem( temp, Uml::lvt_Activity_Diagram );
+                        doc->createDiagram(dt_Activity);
                         break;
 
                 case ListPopupMenu::mt_UseCase_Diagram:
-                        addNewItem( temp, Uml::lvt_UseCase_Diagram );
+                        doc->createDiagram(dt_UseCase);
                         break;
 
                 case ListPopupMenu::mt_Sequence_Diagram:
-                        addNewItem( temp, Uml::lvt_Sequence_Diagram );
+                        doc->createDiagram(dt_Sequence);
                         break;
 
                 case ListPopupMenu::mt_Collaboration_Diagram:
-                        addNewItem( temp, Uml::lvt_Collaboration_Diagram );
+                        doc->createDiagram(dt_Collaboration);
                         break;
 
                 case ListPopupMenu::mt_Class_Diagram:
-                        addNewItem( temp, Uml::lvt_Class_Diagram );
+                        doc->createDiagram(dt_Class);
                         break;
 
                 case ListPopupMenu::mt_State_Diagram:
-                        addNewItem( temp, Uml::lvt_State_Diagram );
+                        doc->createDiagram(dt_State);
                         break;
 






More information about the umbrello-devel mailing list