SVN commit 997964 by asouza:

Only disconnect the signal if everything was ok. Before we were disconnecting
and connecting again if something went wrong.

CCMAIL: plasma-devel@kde.org


 M  +1 -3      knotificationitem.cpp  


--- trunk/KDE/kdelibs/experimental/knotificationitem/knotificationitem.cpp 
#997963:997964
@@ -630,14 +630,12 @@
 
     if (notificationItemWatcher->isValid() &&
         notificationItemWatcher->ProtocolVersion() == s_protocolVersion) {
-        QObject::disconnect(notificationItemWatcher, 
SIGNAL(NotificationHostRegistered()), q, SLOT(registerToDaemon()));
 
         if (notificationItemWatcher->IsNotificationHostRegistered()) {
             kDebug() << "service is" << notificationItemDbus->service();
             
notificationItemWatcher->RegisterService(notificationItemDbus->service());
             setLegacySystemTrayEnabled(false);
-        } else {
-            QObject::connect(notificationItemWatcher, 
SIGNAL(NotificationHostRegistered()), q, SLOT(registerToDaemon()));
+            QObject::disconnect(notificationItemWatcher, 
SIGNAL(NotificationHostRegistered()), q, SLOT(registerToDaemon()));
         }
     } else {
         kDebug()<<"System tray daemon not reachable or no registered system 
trays";
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to