summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2018-07-19 22:38:42 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2018-07-19 22:38:42 +0200
commit3bc12206245e0684f8474f424f88a0fb368c9068 (patch)
tree4b10a8c523ee2606b1e5177fd8244a165c65b97c /src/widget/wpushbutton.cpp
parent490e90b1c7b583b351cb4c68bb8dabf9ab046ba1 (diff)
Fix WPushbutton behaviour for Trigger buttons. Removed some now unnecessary "RightClickIsPushButton" sets.
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index a7a4b1726d..226de296df 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -430,12 +430,12 @@ void WPushButton::mouseReleaseEvent(QMouseEvent * e) {
// This is the secondary clickButton function,
// due the leak of visual feedback we do not allow a toggle
// function
+ m_bPressed = false;
if (m_rightButtonMode == ControlPushButton::PUSH
|| m_iNoStates == 1) {
- m_bPressed = false;
setControlParameterRightUp(0.0);
- restyleAndRepaint();
}
+ restyleAndRepaint();
return;
}