From e7a9fa4dfb4a3cc4ec403994437af3529615aab8 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 21 Aug 2008 08:48:17 +0000 Subject: Made setValues ignore item and radiobutton tags (they have values but no names) --- client/widgetbuilder.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') 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")); -- cgit v1.2.3