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