From 0fcfbdd5992790b8ce33ac63404c6c546bc26495 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 28 Jul 2015 12:14:42 -0400 Subject: [PATCH] Bug1059 (rest of): disallow rearrange-drag during play --- src/TrackPanel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 3eb0ef70b..21656d57f 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -5587,6 +5587,11 @@ void TrackPanel::HandleRearrange(wxMouseEvent & event) return; } + // probably harmless during play? However, we do disallow the click, so check this too. + bool unsafe = IsUnsafe(); + if (unsafe) + return; + MixerBoard* pMixerBoard = this->GetMixerBoard(); // Update mixer board, too. wxString dir; if (event.m_y < mMoveUpThreshold || event.m_y < 0) {