diff options
author | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-13 22:06:52 +0530 |
---|---|---|
committer | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-16 02:17:43 +0530 |
commit | db10daabbe3f96749fd61f21c3e7f67995f81678 (patch) | |
tree | c6615fc8c06b2200afb9a0251accacaf3cec5c23 | |
parent | 097917be77fbf821feac26c1ea8b6ebaa8c9f9c0 (diff) |
wwaveformviewer: stop unnecessary bending after menu close
-rw-r--r-- | src/widget/wwaveformviewer.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/widget/wwaveformviewer.cpp b/src/widget/wwaveformviewer.cpp index 030a2c11d0..334aa444ee 100644 --- a/src/widget/wwaveformviewer.cpp +++ b/src/widget/wwaveformviewer.cpp @@ -90,15 +90,16 @@ void WWaveformViewer::mousePressEvent(QMouseEvent* event) { m_pCueMenuPopup->setTrackAndCue(currentTrack, *cueAtClickPos); m_pCueMenuPopup->popup(event->globalPos()); m_bHotcueMenuShowing = true; + } else { + // If we are scratching then disable and reset because the two shouldn't + // be used at once. + if (m_bScratching) { + m_pScratchPositionEnable->slotSet(0.0); + m_bScratching = false; + } + m_pWheel->setParameter(0.5); + m_bBending = true; } - // If we are scratching then disable and reset because the two shouldn't - // be used at once. - if (m_bScratching) { - m_pScratchPositionEnable->slotSet(0.0); - m_bScratching = false; - } - m_pWheel->setParameter(0.5); - m_bBending = true; } // Set the cursor to a hand while the mouse is down. |