[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Jun 30 23:18:35 UTC 2007
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;
}
More information about the umbrello-devel
mailing list