[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/generic/applets/devicenotifier
From:       Jacopo De Simoi <wilderkde () gmail ! com>
Date:       2010-12-31 12:46:23
Message-ID: 20101231124623.65626AC8AE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210440 by jacopods:

Show notifications for visible devices only
BUG: 261370
FIXED-IN: 4.6.0


 M  +2 -1      devicenotifier.cpp  


--- trunk/KDE/kdebase/workspace/plasma/generic/applets/devicenotifier/devicenotifier.cpp \
#1210439:1210440 @@ -216,9 +216,10 @@
 void DeviceNotifier::newNotification(const QString &source)
 {
     DataEngine::Data data = m_deviceNotificationsEngine->query(source);
-    //TODO Check if we are actually displaying the device in question
+    if (m_lastPlugged.contains(data["udi"].toString()) && \
                !m_hiddenDevices.contains(data["udi"].toString())) {
     showNotification(data["error"].toString(), data["errorDetails"].toString(), \
data["udi"].toString());  }
+}
 
 void DeviceNotifier::configChanged()
 {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic