summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlstatemachine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlstatemachine.cpp')
-rw-r--r--src/uml/qumlstatemachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlstatemachine.cpp b/src/uml/qumlstatemachine.cpp
index ffb641ab..918f0d43 100644
--- a/src/uml/qumlstatemachine.cpp
+++ b/src/uml/qumlstatemachine.cpp
@@ -118,6 +118,8 @@ QUmlStateMachine::~QUmlStateMachine()
QModelingElement *QUmlStateMachine::clone() const
{
QUmlStateMachine *c = new QUmlStateMachine;
+ 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());