From 662c7ab88a48254d65eb47fad1c6a7edf91bf767 Mon Sep 17 00:00:00 2001 From: kornes <28986062+kornes@users.noreply.github.com> Date: Wed, 11 Oct 2023 21:37:57 +0200 Subject: [PATCH] add nullcheck for triple select --- src/widgets/helper/ChannelView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index c5a4cbe7a86..de185eb6292 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -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)) {