From 8f66e75cb068db4398b4fddde205f3a780bec865 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 29 Jun 2015 15:18:20 -0300 Subject: [PATCH] Don't change the hand cursor for StyledButton if the widget is disabled --- src/app/ui/styled_button.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/ui/styled_button.cpp b/src/app/ui/styled_button.cpp index 171281c8a..bb1245755 100644 --- a/src/app/ui/styled_button.cpp +++ b/src/app/ui/styled_button.cpp @@ -31,8 +31,11 @@ StyledButton::StyledButton(skin::Style* style) bool StyledButton::onProcessMessage(Message* msg) { switch (msg->type()) { case kSetCursorMessage: - ui::set_mouse_cursor(kHandCursor); - return true; + if (isEnabled()) { + ui::set_mouse_cursor(kHandCursor); + return true; + } + break; } return Button::onProcessMessage(msg); }