From 03b32bffc8a6f91add465f5366e1fb17b65d4dbb Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Thu, 2 Nov 2023 13:12:52 +0100 Subject: [PATCH] Bugfix: Fixed a crash when clicking `More messages below` button in a usercard and closing it quickly. (#4933) --- CHANGELOG.md | 1 + src/widgets/helper/ChannelView.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbe665295b7..4555e262795 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Bugfix: Fixed the input completion popup from disappearing when clicking on it on Windows and macOS. (#4876) - Bugfix: Fixed double-click text selection moving its position with each new message. (#4898) - Bugfix: Fixed an issue where notifications on Windows would contain no or an old avatar. (#4899) +- Bugfix: Fixed a crash when clicking `More messages below` button in a usercard and closing it quickly. (#4933) - Dev: Change clang-format from v14 to v16. (#4929) - Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791) - Dev: Temporarily disable High DPI scaling on Qt6 builds on Windows. (#4767) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 797ba49fc31..a50bcde1be6 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -351,7 +351,7 @@ void ChannelView::initializeLayout() QObject::connect( this->goToBottom_, &EffectLabel::leftClicked, this, [this] { - QTimer::singleShot(180, [this] { + QTimer::singleShot(180, this, [this] { this->scrollBar_->scrollToBottom( getSettings()->enableSmoothScrollingNewMessages.getValue()); });