From c1f4e947c513eada30a04c1c31c43af600b963b3 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 08:55:03 +0000 Subject: Some validation logic and script activation changes --- client/widgets/widget.cc | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v1.2.3