2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix crash in notifications clearing.

This commit is contained in:
John Preston
2020-06-30 19:33:22 +04:00
parent d529c60081
commit 41f2cc6d81
3 changed files with 7 additions and 5 deletions

View File

@@ -192,7 +192,7 @@ void Manager::showNextFromQueue() {
return;
}
int count = Core::App().settings().notificationsCount();
for_const (auto &notification, _notifications) {
for (const auto &notification : _notifications) {
if (notification->isUnlinked()) continue;
--count;
}