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

List:       kde-commits
Subject:    branches/KDE/3.5/kdesdk/umbrello/umbrello
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2007-06-30 23:18:35
Message-ID: 1183245515.132477.4372.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 681952 by okellogg:

Emit UMLObject::emitModified() only AFTER all else is done, cf. r671969


 M  +3 -3      entity.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/entity.cpp #681951:681952
@@ -98,8 +98,8 @@
 UMLObject* UMLEntity::addEntityAttribute(const QString& name, Uml::IDType id) {
     UMLEntityAttribute* literal = new UMLEntityAttribute(this, name, id);
     m_List.append(literal);
+    emit entityAttributeAdded(literal);
     UMLObject::emitModified();
-    emit entityAttributeAdded(literal);
     connect(literal,SIGNAL(modified()),this,SIGNAL(modified()));
     return literal;
 }
@@ -110,8 +110,8 @@
         attribute->parent()->removeChild(attribute);
         this->insertChild(attribute);
         m_List.append(attribute);
+        emit entityAttributeAdded(attribute);
         UMLObject::emitModified();
-        emit entityAttributeAdded(attribute);
         connect(attribute,SIGNAL(modified()),this,SIGNAL(modified()));
         return true;
     } else if (Log) {
@@ -131,8 +131,8 @@
         } else {
             m_List.append(attribute);
         }
+        emit entityAttributeAdded(attribute);
         UMLObject::emitModified();
-        emit entityAttributeAdded(attribute);
         connect(attribute,SIGNAL(modified()),this,SIGNAL(modified()));
         return true;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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