diff options
author | ronso0 <ronso0@mixxx.org> | 2020-03-31 22:25:02 +0200 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2020-03-31 22:25:02 +0200 |
commit | ae71bf47a870431ff666c873ffa17bb9bebcb5c3 (patch) | |
tree | abcbbbae322405577c1d4ff1c40ad366ebe4c916 | |
parent | b78eb7b21377e0b482ff9586eb26c19b6ab0a0c8 (diff) |
fix powerwindow button release
-rw-r--r-- | src/widget/wpushbutton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp index d2544cd1bb..079ec6cd37 100644 --- a/src/widget/wpushbutton.cpp +++ b/src/widget/wpushbutton.cpp @@ -463,13 +463,13 @@ void WPushButton::mouseReleaseEvent(QMouseEvent * e) { if (m_leftButtonMode == ControlPushButton::POWERWINDOW && m_iNoStates == 2) { if (leftClick) { - m_bPressed = false; const bool rightButtonDown = QApplication::mouseButtons() & Qt::RightButton; if (m_bPressed && !m_clickTimer.isActive() && !rightButtonDown) { // Release button after timer, but not if right button is clicked double emitValue = getControlParameterLeft() == 0.0 ? 1.0 : 0.0; setControlParameterLeftUp(emitValue); } + m_bPressed = false; } else if (rightClick) { m_bPressed = false; } |