diff options
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index b93f93656c..478e1d87f4 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -146,10 +146,14 @@ Widget *Widget::findWidgetInChain(Widget *w, const char *name) { } void Widget::setEnabled(bool e) { - if (e) - setFlags(WIDGET_ENABLED); - else - clearFlags(WIDGET_ENABLED); + if ((_flags & WIDGET_ENABLED) != e) { + if (e) + setFlags(WIDGET_ENABLED); + else + clearFlags(WIDGET_ENABLED); + + _boss->draw(); + } } bool Widget::isEnabled() const { |