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