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

Oliver Kellogg okellogg at users.sourceforge.net
Wed Nov 22 05:53:40 UTC 2006


SVN commit 606868 by okellogg:

setCurrentView(): Add the view to the m_viewStack if it doesn't exist there yet.

 M  +5 -1      uml.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/uml.cpp #606867:606868
@@ -1594,8 +1594,12 @@
 
 void UMLApp::setCurrentView(UMLView* view) {
     m_view = view;
-    if (m_viewStack == NULL)
+    if (m_viewStack == NULL) {
+        kError() << "UMLApp::setCurrentView: m_viewStack is NULL" << endl;
         return;
+    }
+    if (m_viewStack->id(view) < 0)
+        m_viewStack->addWidget(view);
     m_viewStack->raiseWidget(view);
     kapp->processEvents();
     if (view) {




More information about the umbrello-devel mailing list