summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index fb0d4cbe..b2a395e9 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -205,8 +205,7 @@ void Button::updateAlpha()
mAlpha = alpha;
for (int mode = 0; mode < BUTTON_COUNT; ++mode)
{
- for (int a = 0; a < 9; ++a)
- mButton[mode].grid[a]->setAlpha(mAlpha);
+ mButton[mode].setAlpha(mAlpha);
}
}
}