summaryrefslogtreecommitdiff
path: root/client/widgets/pushbutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r--client/widgets/pushbutton.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/widgets/pushbutton.cc b/client/widgets/pushbutton.cc
index 7c78cfd..5b424a5 100644
--- a/client/widgets/pushbutton.cc
+++ b/client/widgets/pushbutton.cc
@@ -27,17 +27,11 @@
#include "pushbutton.h"
#include <stdio.h>
-PushButton::PushButton(QDomNode node) : QPushButton()
+PushButton::PushButton(QDomNode node)
+ : QPushButton(), 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 {