From 0e5a692d5fb6d04e7ffebdc325f7c319dc4c6d24 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 19 Aug 2010 10:38:58 +0000 Subject: Fix setValue order (children first) in setValues. --- client/widgets/widget.cc | 6 +++--- 1 file 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) -- cgit v1.2.3