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

List:       kde-commits
Subject:    branches/KDE/4.5/kdebase/workspace/plasma/generic/dataengines/hotplug
From:       Jacopo De Simoi <wilderkde () gmail ! com>
Date:       2010-07-06 15:14:13
Message-ID: 20100706151413.10919AC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1146747 by jacopods:

Make sure that if new actions become available, new devices are 
correctly added.
Usecase: if one installs k3b with a blank media sitting in the drive
         now the media correctly shows up after the installation procedure


 M  +4 -0      hotplugengine.cpp  


--- branches/KDE/4.5/kdebase/workspace/plasma/generic/dataengines/hotplug/hotplugengine.cpp \
#1146746:1146747 @@ -126,10 +126,14 @@
 
         QStringList predicates = predicatesForDevice(device);
         if (!predicates.isEmpty()) {
+            if (sources().contains(udi)) {
             Plasma::DataEngine::Data data;
             data.insert("predicateFiles", predicates);
 
             setData(udi, data);
+            } else {
+                onDeviceAdded(device, false);
+            }
         } else if (!m_encryptedPredicate.matches(device) && sources().contains(udi)) \
{  removeSource(udi);
             scheduleSourcesUpdated();


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

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