From kde-panel-devel Thu Apr 28 19:23:20 2011 From: Artur Duque de Souza Date: Thu, 28 Apr 2011 19:23:20 +0000 To: kde-panel-devel Subject: =?utf-8?q?=5Bkde-workspace=5D_plasma/generic/applets/notificatio?= Message-Id: <20110428192320.CF1E4A60A4 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=130401866414465 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 Reviewed-by: Marco Martin 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