summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/widgetbuilder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/widgetbuilder.cc b/client/widgetbuilder.cc
index 4f39627..e6dd954 100644
--- a/client/widgetbuilder.cc
+++ b/client/widgetbuilder.cc
@@ -121,6 +121,8 @@ void setValues(QDomNode xml_node, MacroWindow *macrowindow)
{
QDomElement xml_elem = xml_node.toElement();
+ if(xml_elem.tagName() == "item" || xml_elem.tagName() == "radiobutton") return;
+
if(xml_elem.hasAttribute("name") && xml_elem.hasAttribute("value")) {
Widget *widget = macrowindow->getWidget(xml_elem.attribute("name"));
if(widget) widget->setValue(xml_elem.attribute("value"));