From 39ee6efffc4efeddedde07021aa2345793aaf0dd Mon Sep 17 00:00:00 2001 From: Cranken Date: Sat, 6 Oct 2018 16:19:58 +0200 Subject: [PATCH] Fixed user popup not working. --- src/widgets/helper/ChannelView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 2abeb6b4..74c53957 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1072,14 +1072,15 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event) if (event->button() == Qt::LeftButton) { this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight = false; - if (this->isMouseDown_ || this->isDoubleClick_) { + if (this->isMouseDown_) { this->isMouseDown_ = false; - this->isDoubleClick_ = false; if (fabsf(distanceBetweenPoints(this->lastPressPosition_, event->screenPos())) > 15.f) { return; } + } else if (this->isDoubleClick_) { + this->isDoubleClick_ = false; // Was actually not a wanted triple-click if (fabsf(distanceBetweenPoints(this->lastDClickPosition_, event->screenPos())) > 10.f) {