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

Oliver Kellogg okellogg at users.sourceforge.net
Wed Jul 18 22:29:40 UTC 2007


SVN commit 689706 by okellogg:

init(): Do not call UMLDoc::currentRoot() while loading.

 M  +2 -1      association.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/association.cpp #689705:689706
@@ -564,7 +564,8 @@
     m_Name = "";
     m_bOldLoadMode = false;
     nrof_parent_widgets = -1;
-    m_pUMLPackage = UMLApp::app()->getDocument()->currentRoot();
+    if (!UMLApp::app()->getDocument()->loading())
+        m_pUMLPackage = UMLApp::app()->getDocument()->currentRoot();
     m_pRole[Uml::A] = new UMLRole (this, roleAObj, Uml::A);
     m_pRole[Uml::B] = new UMLRole (this, roleBObj, Uml::B);
 }




More information about the umbrello-devel mailing list