diff options
Diffstat (limited to 'client/widgets/widget.cc')
-rw-r--r-- | client/widgets/widget.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc index d85d1ad..231359c 100644 --- a/client/widgets/widget.cc +++ b/client/widgets/widget.cc @@ -33,8 +33,8 @@ #include <QLayout> #include <QObject> -//#define DEBUG(fmt...) printf(fmt) -#define DEBUG(ftm...) +#define DEBUG(fmt...) printf("Widget (%p)", this); printf(fmt); fflush(stdout) +//#define DEBUG(ftm...) Widget::Widget(QDomNode &node, MacroWindow *macrowindow) { @@ -64,9 +64,8 @@ Widget::Widget(QDomNode &node, MacroWindow *macrowindow) lazy_value = elem.attribute("value", ""); lazy_source = elem.attribute("prefilled", "prefilled"); - if((hasOnChangeEvent = elem.hasAttribute("onChange"))) { - onChangeEventScript = elem.attribute("onChange"); - } + hasOnChangeEvent = elem.hasAttribute("onChange"); + onChangeEventScript = elem.attribute("onChange", ""); is_valid = true; |