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@kde.org Signed-off-by: Artur Duque de Souza <aso...@kde.org> Reviewed-by: Marco Martin <m...@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()); } _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel