[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 139295] app hangs after marking a composition line
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2006-12-31 17:19:02
Message-ID: 20061231171902.15705.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=139295         




------- Additional Comments From okellogg users sourceforge net  2006-12-31 18:19 -------
SVN commit 618229 by okellogg:

addAssociationInViewAndDoc(): Set the UMLPackage in the UMLAssociation.
Addresses Commment #2.  Might also fix the hang, I can't tell.
CCBUG:139295


 M  +7 -1      toolbarstateassociation.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/toolbarstateassociation.cpp #618228:618229
 @ -19,8 +19,10  @
 
 // app includes
 #include "assocrules.h"
+#include "association.h"
 #include "associationwidget.h"
 #include "classifierwidget.h"
+#include "folder.h"
 #include "model_utils.h"
 #include "uml.h"
 #include "umlobject.h"
 @ -205,7 +207,11  @
     // append in view
     if (m_pUMLView->addAssociation(a, false)) {
         // if view went ok, then append in document
-        UMLApp::app()->getDocument()->addAssociation(a->getAssociation());
+        UMLAssociation *umla = a->getAssociation();
+        Uml::Model_Type m = Model_Utils::convert_DT_MT(m_pUMLView->getType());
+        UMLDoc *umldoc = UMLApp::app()->getDocument();
+        umla->setUMLPackage(umldoc->getRootFolder(m));
+        UMLApp::app()->getDocument()->addAssociation(umla);
     } else {
         kError() << "cannot addAssocInViewAndDoc(), deleting" << endl;
         delete a;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic