diff options
Diffstat (limited to 'src/uml/qumlcreatelinkobjectaction.cpp')
-rw-r--r-- | src/uml/qumlcreatelinkobjectaction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlcreatelinkobjectaction.cpp b/src/uml/qumlcreatelinkobjectaction.cpp index 2b9d1112..283baa91 100644 --- a/src/uml/qumlcreatelinkobjectaction.cpp +++ b/src/uml/qumlcreatelinkobjectaction.cpp @@ -101,6 +101,8 @@ QUmlCreateLinkObjectAction::~QUmlCreateLinkObjectAction() QModelingElement *QUmlCreateLinkObjectAction::clone() const { QUmlCreateLinkObjectAction *c = new QUmlCreateLinkObjectAction; + 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()); |