From 403fc6d3c4397ac0a9459a499f975f09d44f4c8c Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 3 Nov 2024 11:49:00 +0100 Subject: [PATCH] fix: ensure timer doesn't run if the QuickSwitcherPopup is dead (#5687) --- CHANGELOG.md | 1 + src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c433308b..a66013510 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ - Bugfix: Fixed event emotes not showing up in autocomplete and popups. (#5239, #5580, #5582, #5632) - Bugfix: Fixed tab visibility being controllable in the emote popup. (#5530) - Bugfix: Fixed account switch not being saved if no other settings were changed. (#5558) +- Bugfix: Fixed a crash that could occur when handling the quick switcher popup really quickly. (#5687) - Bugfix: Fixed 7TV badges being inadvertently animated. (#5674) - Bugfix: Fixed some tooltips not being readable. (#5578) - Bugfix: Fixed log files being locked longer than needed. (#5592) diff --git a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp index 7841d06b4..b0294c45a 100644 --- a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp +++ b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp @@ -141,7 +141,7 @@ void QuickSwitcherPopup::updateSuggestions(const QString &text) * Timeout interval 0 means the call will be delayed until all window events * have been processed (cf. https://doc.qt.io/qt-5/qtimer.html#interval-prop). */ - QTimer::singleShot(0, [this] { + QTimer::singleShot(0, this, [this] { this->adjustSize(); }); }