summaryrefslogtreecommitdiff
path: root/editor/widget.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-14 09:55:43 +0000
committerdeva <deva>2008-07-14 09:55:43 +0000
commit6d2e3e9af73c085580ab3b001063ddb3e74d2c3c (patch)
tree75bda1c01d9d377ba5ce2e90595e1cb06a3e1fdc /editor/widget.cc
parent48f92d13fa3a42007a068baf1d63f418b22a2b3e (diff)
Fixed problem where all widgets of the same type shared their QDomNode.
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")) {