From 697558b6cebe5a3024747058d8515d9f2f88552e Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 2 Dec 2024 15:58:31 +0100 Subject: [PATCH 1/2] fix(toasts): only clear if initialized --- src/singletons/Toasts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/singletons/Toasts.cpp b/src/singletons/Toasts.cpp index efcb908ba5c..3e8f804ddd7 100644 --- a/src/singletons/Toasts.cpp +++ b/src/singletons/Toasts.cpp @@ -73,7 +73,10 @@ using WinToastLib::WinToastTemplate; Toasts::~Toasts() { #ifdef Q_OS_WIN - WinToast::instance()->clear(); + if (this->initialized_) + { + WinToast::instance()->clear(); + } #endif } From f04668032a3bbcc8562427491d5cf9427acdcf9c Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Mon, 2 Dec 2024 16:08:54 +0100 Subject: [PATCH 2/2] chore: changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c4d6c0f575..cf4906a18d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,7 +74,7 @@ - Bugfix: Fixed incorrect message being disabled in some cases upon approving or denying an automod caught message. (#5611) - Bugfix: Fixed network requests timing out despite them not being in flight for that long, for Qt 6.3+ where we have the technology. (#5729) - Bugfix: Fixed double-click selection not working when clicking outside a message. (#5617) -- Bugfix: Fixed a potential rare crash that could occur on Windows if a toast was about to fire just as we were shutting down. (#5728) +- Bugfix: Fixed a rare crash that could occur on Windows if a toast was about to fire just as we were shutting down. (#5728, #5752) - Bugfix: Fixed emotes starting with ":" not tab-completing. (#5603) - Bugfix: Fixed 7TV emotes messing with Qt's HTML. (#5677) - Bugfix: Fixed incorrect messages getting replaced visually. (#5683)