summaryrefslogtreecommitdiff
path: root/src/gui/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r--src/gui/button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index c508afe2..fb1a01ec 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -57,7 +57,7 @@ Button::Button(const std::string& caption):
void Button::draw(gcn::Graphics* graphics) {
int mode;
- if (false /*disabled*/) {
+ if (!isEnabled()) {
mode = 3;
}
else if (isPressed()) {