summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-05 21:45:17 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-05 21:45:17 +0300
commitf80cd1d9c39684b234efc27e7f5218e9890ada1a (patch)
treee1b83233b523225ff3b3aea871f9142d4562e0db
parent83a63491758eb2cd6de149d33c0833a7f8eb97f5 (diff)
downloadmv-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.gz
mv-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.bz2
mv-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.xz
mv-f80cd1d9c39684b234efc27e7f5218e9890ada1a.zip
Fix stuck some buttons in hightligted state after pressing.
For example button in who is online window.
-rw-r--r--src/gui/widgets/button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index d09a6b3cb..0c2600583 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -471,7 +471,7 @@ void Button::draw(Graphics *const graphics)
mode = BUTTON_DISABLED;
else if (isPressed2())
mode = BUTTON_PRESSED;
- else if (mHasMouse || isFocused())
+ else if (mHasMouse)
mode = BUTTON_HIGHLIGHTED;
else
mode = BUTTON_STANDARD;