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