Fixed user popup not working.
This commit is contained in:
@@ -1072,14 +1072,15 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
|
|||||||
if (event->button() == Qt::LeftButton) {
|
if (event->button() == Qt::LeftButton) {
|
||||||
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
|
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
|
||||||
false;
|
false;
|
||||||
if (this->isMouseDown_ || this->isDoubleClick_) {
|
if (this->isMouseDown_) {
|
||||||
this->isMouseDown_ = false;
|
this->isMouseDown_ = false;
|
||||||
this->isDoubleClick_ = false;
|
|
||||||
|
|
||||||
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
|
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
|
||||||
event->screenPos())) > 15.f) {
|
event->screenPos())) > 15.f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (this->isDoubleClick_) {
|
||||||
|
this->isDoubleClick_ = false;
|
||||||
// Was actually not a wanted triple-click
|
// Was actually not a wanted triple-click
|
||||||
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
|
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
|
||||||
event->screenPos())) > 10.f) {
|
event->screenPos())) > 10.f) {
|
||||||
|
|||||||
Reference in New Issue
Block a user