summaryrefslogtreecommitdiff
path: root/editor/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'editor/widget.cc')
-rw-r--r--editor/widget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/widget.cc b/editor/widget.cc
index cb006f9..79957bd 100644
--- a/editor/widget.cc
+++ b/editor/widget.cc
@@ -50,10 +50,10 @@
#include "widgetwrapper.h"
#include "propertieseditor.h"
-Widget::Widget(QDomNode &node)
+Widget::Widget(QDomNode node)
: QWidget()
{
- elem = node.toElement();
+ elem = node.cloneNode(true).toElement();
iscontainer = false;
if(elem.hasAttribute("layout")) {