diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-05 21:45:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-05 21:45:17 +0300 |
commit | f80cd1d9c39684b234efc27e7f5218e9890ada1a (patch) | |
tree | e1b83233b523225ff3b3aea871f9142d4562e0db /src/gui/widgets | |
parent | 83a63491758eb2cd6de149d33c0833a7f8eb97f5 (diff) | |
download | manaplus-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.gz manaplus-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.bz2 manaplus-f80cd1d9c39684b234efc27e7f5218e9890ada1a.tar.xz manaplus-f80cd1d9c39684b234efc27e7f5218e9890ada1a.zip |
Fix stuck some buttons in hightligted state after pressing.
For example button in who is online window.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/button.cpp | 2 |
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; |