aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 62d8f8eef5..893128ce1e 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -137,7 +137,7 @@ bool Widget::isEnabled() const {
if (g_gui.evaluator()->getVar(_name + ".enabled") == 0) {
return false;
}
- return _flags & WIDGET_ENABLED;
+ return ((_flags & WIDGET_ENABLED) != 0);
}
bool Widget::isVisible() const {