[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Tue Jun 10 10:18:04 UTC 2003


CVS commit by thomas: 

bug fix: dont crash if empty menu pointer is passed to findMenu, simply return no menu found signal, e.g. '0'


  M +11 -8     uml.cpp   1.40


--- kdesdk/umbrello/umbrello/uml.cpp  #1.39:1.40
@@ -1447,4 +1447,6 @@ void UMLApp::setCurrentView(UMLView* vie
 
 QPopupMenu* UMLApp::findMenu(QMenuData* menu, QString name) {
+
+        if (menu) {
         int menuCount = menu->count();
 
@@ -1456,4 +1458,5 @@ QPopupMenu* UMLApp::findMenu(QMenuData* 
                         if( menuName == name) {
                                 return popupMenu;
+                                }
                         }
                 }






More information about the umbrello-devel mailing list