From 92b7a86e1f9529c78f62a241aee161eb69ff08ab Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Wed, 13 Apr 2016 13:08:36 +0300 Subject: GUI: Remove highlighting when button widget is pressed Without this, buttons would stay highlighted after being un-pressed. Fixes #7094. --- gui/widget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gui/widget.cpp') diff --git a/gui/widget.cpp b/gui/widget.cpp index 11b1ed66f0..4143111e54 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -356,6 +356,7 @@ void ButtonWidget::handleTickle() { void ButtonWidget::setPressedState() { wantTickle(true); setFlags(WIDGET_PRESSED); + clearFlags(WIDGET_HILITED); draw(); } -- cgit v1.2.3