summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/widgets/widget.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index 2e0bd2b..88151ce 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -111,6 +111,8 @@ bool Widget::local()
bool Widget::valid(bool deep)
{
+ if(enabled() == false) return true;
+
if(preValid() == false) return false;
if(is_valid == false) return false;
@@ -129,6 +131,12 @@ void Widget::setValid(bool valid)
{
is_valid = valid;
setWdgValid(valid);
+
+ QVector< Widget* >::iterator i = children.begin();
+ while(i != children.end()) {
+ if(*i) (*i)->setValid(valid);
+ i++;
+ }
}
void Widget::eventOnChange()