[kde-workspace] plasma/generic/applets/notifications/ui: Automatically delete the notification when action clicked
Artur Duque de Souza
asouza at kde.org
Thu Apr 28 21:23:20 CEST 2011
Git commit 71642957d337be6e9327b10e618b4d7927eed38e by Artur Duque de Souza.
Committed on 28/04/2011 at 21:18.
Pushed by asouza into branch 'master'.
Automatically delete the notification when action clicked
When the user clicks on the button that will trigger the action of
the notification, we delete the notification so it doesn't hang there
'forever'. Let's see how it goes, but I think it improves the usability.
CCMAIL:plasma-devel at kde.org
Signed-off-by: Artur Duque de Souza <asouza at kde.org>
Reviewed-by: Marco Martin <mart at kde.org>
M +1 -1 plasma/generic/applets/notifications/ui/notificationwidget.cpp
http://commits.kde.org/kde-workspace/71642957d337be6e9327b10e618b4d7927eed38e
diff --git a/plasma/generic/applets/notifications/ui/notificationwidget.cpp b/plasma/generic/applets/notifications/ui/notificationwidget.cpp
index 3f87cfe..72bb108 100644
--- a/plasma/generic/applets/notifications/ui/notificationwidget.cpp
+++ b/plasma/generic/applets/notifications/ui/notificationwidget.cpp
@@ -433,7 +433,7 @@ void NotificationWidgetPrivate::buttonClicked()
{
//a decsion has already been taken
if (actionsWidget) {
- actionsWidget->hide();
+ notification.data()->deleteLater();
}
emit q->actionTriggered(notification.data());
}
More information about the Plasma-devel
mailing list