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