Don't change the hand cursor for StyledButton if the widget is disabled

This commit is contained in:
David Capello 2015-06-29 15:18:20 -03:00
parent 269ff609b7
commit 8f66e75cb0

View File

@ -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);
}