summaryrefslogtreecommitdiff
path: root/client/widgets/radiobutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/radiobutton.cc')
-rw-r--r--client/widgets/radiobutton.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/widgets/radiobutton.cc b/client/widgets/radiobutton.cc
index af34de6..0645745 100644
--- a/client/widgets/radiobutton.cc
+++ b/client/widgets/radiobutton.cc
@@ -26,17 +26,11 @@
*/
#include "radiobutton.h"
-RadioButton::RadioButton(QDomNode node) : QRadioButton()
+RadioButton::RadioButton(QDomNode node)
+ : QRadioButton(), Widget(node)
{
QDomElement elem = node.toElement();
- if(elem.hasAttribute("name")) {
- widget_name = elem.attribute("name");
- } else {
- printf("XML ERROR!! Unnamed widget of type: %s\n",
- elem.tagName().toStdString().c_str());
- }
-
if(elem.hasAttribute("caption")) {
setText(elem.attribute("caption"));
} else {