summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/widgets/widget.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc
index 88151ce..9ebed55 100644
--- a/client/widgets/widget.cc
+++ b/client/widgets/widget.cc
@@ -150,6 +150,13 @@ void Widget::setEnabled(bool enabled)
widget->setEnabled(enabled);
if(enabled) eventOnChange();
else setValid(true); // Force disabled widgets to be valid
+
+ QVector< Widget* >::iterator i = children.begin();
+ while(i != children.end()) {
+ if(*i) (*i)->setEnabled(enabled);
+ i++;
+ }
+
}
bool Widget::enabled()