From 288d07c31d40a151330bf417b380467ff1743e3e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 26 Aug 2023 20:41:03 +0300 Subject: [PATCH] kdeui: delay the automatic deletion of non-persistent notifications by 500ms Signed-off-by: Ivailo Monev --- kdeui/notifications/knotification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdeui/notifications/knotification.cpp b/kdeui/notifications/knotification.cpp index 5c3d4217..6f84c6a6 100644 --- a/kdeui/notifications/knotification.cpp +++ b/kdeui/notifications/knotification.cpp @@ -362,7 +362,7 @@ void KNotification::send() const bool persistent = (flags() & KNotification::Persistent); kNotificationManager->send(this, persistent); if (!persistent) { - close(); + QTimer::singleShot(500, this, SLOT(close())); } }