From 0ee65c09181f620479fdac0f37a6277590ff557d Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 1 Jun 2016 11:48:42 -0400 Subject: [PATCH] Remove superfluous code for changing transport button images --- src/widgets/AButton.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/widgets/AButton.cpp b/src/widgets/AButton.cpp index e5a730b4f..83667a5d9 100644 --- a/src/widgets/AButton.cpp +++ b/src/widgets/AButton.cpp @@ -392,18 +392,6 @@ void AButton::OnMouseEvent(wxMouseEvent & event) (event.m_x >= 0 && event.m_y >= 0 && event.m_x < clientSize.x && event.m_y < clientSize.y); - if (!mButtonIsDown) - { - // Note that CMD (or CTRL) takes precedence over Shift if both are down - // see also AButton::Listener::OnKeyUp() - if (event.CmdDown() && HasAlternateImages(2)) - mAlternateIdx = 2; - else if (event.ShiftDown() && HasAlternateImages(1)) - mAlternateIdx = 1; - else - mAlternateIdx = 0; - } - if (mEnabled && event.IsButton()) { if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) { mIsClicking = true;