summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlfinalstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlfinalstate.cpp')
-rw-r--r--src/uml/qumlfinalstate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlfinalstate.cpp b/src/uml/qumlfinalstate.cpp
index 7ada8332..561fbfa6 100644
--- a/src/uml/qumlfinalstate.cpp
+++ b/src/uml/qumlfinalstate.cpp
@@ -97,6 +97,8 @@ QUmlFinalState::~QUmlFinalState()
QModelingElement *QUmlFinalState::clone() const
{
QUmlFinalState *c = new QUmlFinalState;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());