diff options
author | deva <deva> | 2010-08-17 08:55:03 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-17 08:55:03 +0000 |
commit | c1f4e947c513eada30a04c1c31c43af600b963b3 (patch) | |
tree | 66210c22e8b9e681f947f62ea8af65cca9e56861 | |
parent | 399906b24e7a98f627418a87b39fa0c959352798 (diff) |
Some validation logic and script activation changes
-rw-r--r-- | client/widgets/widget.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/widgets/widget.cc b/client/widgets/widget.cc index 1518231..d85d1ad 100644 --- a/client/widgets/widget.cc +++ b/client/widgets/widget.cc @@ -142,6 +142,8 @@ void Widget::eventOnChange() void Widget::setEnabled(bool enabled) { widget->setEnabled(enabled); + if(enabled) eventOnChange(); + else setValid(true); // Force disabled widgets to be valid } bool Widget::enabled() @@ -152,6 +154,7 @@ bool Widget::enabled() void Widget::setVisible(bool visible) { widget->setVisible(visible); + if(visible) eventOnChange(); } bool Widget::visible() |