diff options
author | deva <deva> | 2010-08-19 10:38:58 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-19 10:38:58 +0000 |
commit | 0e5a692d5fb6d04e7ffebdc325f7c319dc4c6d24 (patch) | |
tree | bb89ec15e3970e8ad5612423a5de5961c27b73da | |
parent | bddaa803d119d41857d1d8527fffab1c0dcd8bfa (diff) |
Fix setValue order (children first) in setValues.
-rw-r--r-- | client/widgets/widget.cc | 6 |
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) |