Skip to content

Commit

Permalink
add nullcheck for triple select
Browse files Browse the repository at this point in the history
  • Loading branch information
kornes committed Oct 11, 2023
1 parent dd1dcbc commit 662c7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/helper/ChannelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
}

// Triple-clicking a message selects the whole message
if (this->clickTimer_->isActive() &&
if (foundElement && this->clickTimer_->isActive() &&
(fabsf(distanceBetweenPoints(this->lastDClickPosition_,
event->screenPos())) < 10.f))
{
Expand Down

0 comments on commit 662c7ab

Please sign in to comment.