summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordeva <deva>2010-08-19 10:38:58 +0000
committerdeva <deva>2010-08-19 10:38:58 +0000
commit0e5a692d5fb6d04e7ffebdc325f7c319dc4c6d24 (patch)
treebb89ec15e3970e8ad5612423a5de5961c27b73da /client
parentbddaa803d119d41857d1d8527fffab1c0dcd8bfa (diff)
Fix setValue order (children first) in setValues.
Diffstat (limited to 'client')
-rw-r--r--client/widgets/widget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index d4d0826..9e15bf2 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -269,14 +269,14 @@ void Widget::addChildren(QDomNode &node, QLayout *layout)
void Widget::setValues()
{
- if(has_lazy) setValue(lazy_value, lazy_source);
- else emit eventOnChange(); // Make sure we run validation on the unset widget.
-
QVector< Widget* >::iterator i = children.begin();
while(i != children.end()) {
if(*i) (*i)->setValues();
i++;
}
+
+ if(has_lazy) setValue(lazy_value, lazy_source);
+ else emit eventOnChange(); // Make sure we run validation on the unset widget.
}
void Widget::createWidget(QDomNode &xml_node, QLayout *layout)