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