diff options
author | deva <deva> | 2008-08-21 08:48:17 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-21 08:48:17 +0000 |
commit | e7a9fa4dfb4a3cc4ec403994437af3529615aab8 (patch) | |
tree | 8338144421cb70b602a8d6753823e8770e13782b /client | |
parent | 188070b4de5cf878ac3259ce39359106dc6f6643 (diff) |
Made setValues ignore item and radiobutton tags (they have values but no names)
Diffstat (limited to 'client')
-rw-r--r-- | client/widgetbuilder.cc | 2 |
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")); |