[SCM] Kingston update notifier (update-notifier-kde) branch, master, updated. bcf726b0decd5ca99e6003a65263ea8cceaef225

Sune Vuorela pusling-guest at alioth.debian.org
Thu Jun 10 12:21:00 UTC 2010


The following commit has been merged in the master branch:
commit bcf726b0decd5ca99e6003a65263ea8cceaef225
Author: Sune Vuorela <sune at vuorela.dk>
Date:   Thu Jun 10 01:33:04 2010 +0200

    close the notification if there is no updates to be shown. Fixes #584315
---
 src/notifier.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/notifier.cpp b/src/notifier.cpp
index 92404e1..a14e380 100644
--- a/src/notifier.cpp
+++ b/src/notifier.cpp
@@ -46,7 +46,9 @@ notifier_t::notifier_t(const KComponentData& component_data, QObject* parent): Q
 
 void notifier_t::notify_new_updates(int updates, int security_updates) {
   if(updates==0 && security_updates==0) {
-    //do nothing, I guess
+    if(m_upgrade_notification) {
+      m_upgrade_notification.data()->close();
+    }
   } else {
     QPixmap px;
     if(security_updates==0) {

-- 
Kingston update notifier (update-notifier-kde)



More information about the pkg-kde-commits mailing list