From 42f47e483da19079a937c4801ca94bd62d8dc970 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Aug 2017 22:44:29 +0300 Subject: Remove useless else. --- src/gui/widgets/button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/widgets/button.cpp') diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp index 3509b927c..df46014a3 100644 --- a/src/gui/widgets/button.cpp +++ b/src/gui/widgets/button.cpp @@ -880,8 +880,7 @@ bool Button::isPressed() const { if (mMousePressed) return mHasMouse; - else - return mKeyPressed; + return mKeyPressed; } void Button::focusLost(const Event& event A_UNUSED) -- cgit v1.2.3-70-g09d2