summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/macrowindow.cc5
-rw-r--r--client/widgets/combobox.cc4
-rw-r--r--client/widgets/widget.cc1
3 files changed, 6 insertions, 4 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index 49f3782..6e7249e 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -118,7 +118,12 @@ void MacroWindow::initMacro(QDomNode &node)
clear();
}
+ DEBUG(mainwindow, "----------------------Before--------------------------");
+
Window *window = new Window(elem, this);
+
+ DEBUG(mainwindow, "----------------------After--------------------------");
+
connect(window, SIGNAL(wasChanged()), this, SLOT(macroChanged()));
macrotitle = elem.attribute("caption");
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc
index c426e41..ea8a239 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -141,10 +141,6 @@ ComboBox::ComboBox(QDomNode &node, MacroWindow *macrowindow)
connect(combobox, SIGNAL(editTextChanged(QString)), this, SLOT(changed()));
break;
}
-
- ischangingbyuser = false;
- changed();
- ischangingbyuser = true;
}
ComboBox::~ComboBox()
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index 563f648..2e0bd2b 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -234,6 +234,7 @@ void Widget::addChildren(QDomNode &node, QLayout *layout)
void Widget::setValues()
{
if(has_lazy) setValue(lazy_value, lazy_source);
+ else eventOnChange(); // Make sure we run validation on the unset widget.
QVector< Widget* >::iterator i = children.begin();
while(i != children.end()) {