fix: ensure timer doesn't run if the QuickSwitcherPopup is dead (#5687)

This commit is contained in:
pajlada
2024-11-03 11:49:00 +01:00
committed by GitHub
parent 4b725c4d6b
commit 403fc6d3c4
2 changed files with 2 additions and 1 deletions
@@ -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();
});
}