From f80cd1d9c39684b234efc27e7f5218e9890ada1a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Sep 2017 21:45:17 +0300 Subject: Fix stuck some buttons in hightligted state after pressing. For example button in who is online window. --- src/gui/widgets/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-60-g2f50