From 74e9252d9946c6c36e2fbee544b92f3289d961e0 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 5 Oct 2023 10:49:24 +0200 Subject: [PATCH] fix notification crash --- .../gui/notifications/toastnotificationsmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librssguard/gui/notifications/toastnotificationsmanager.cpp b/src/librssguard/gui/notifications/toastnotificationsmanager.cpp index 8cc6cff15..61b553e61 100644 --- a/src/librssguard/gui/notifications/toastnotificationsmanager.cpp +++ b/src/librssguard/gui/notifications/toastnotificationsmanager.cpp @@ -87,11 +87,11 @@ void ToastNotificationsManager::showNotification(Notification::Event event, hookNotification(notif); } - auto* screen = moveToProperScreen(notif); - // Insert new notification into free space. notif->show(); + auto* screen = moveToProperScreen(notif); + auto notif_new_pos = cornerForNewNotification(screen->availableGeometry()); // Make sure notification is finally resized.