summaryrefslogtreecommitdiff
path: root/client/widgets/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/widget.cc')
-rw-r--r--client/widgets/widget.cc3
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()