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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/hotplug
From:       Alexis Ménard <darktears31 () gmail ! com>
Date:       2007-10-27 13:34:45
Message-ID: 1193492085.154480.6669.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 729951 by menard:

Name of desktop file are transmit to solidUIServer


 M  +2 -2      hotplugengine.cpp  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/hotplug/hotplugengine.cpp #729950:729951
@@ -42,7 +42,7 @@
             this, SLOT(onDeviceAdded(const QString &)));
     connect(Solid::DeviceNotifier::instance(), SIGNAL(deviceRemoved(const QString &)),
             this, SLOT(onDeviceRemoved(const QString &)));
-    files = KGlobal::dirs()->findAllResources("data", "solid/actions/*.desktop");
+    files = KGlobal::dirs()->findAllResources("data", "solid/actions/");
     //kDebug() <<files.size();
     new_device=false;
 }
@@ -65,7 +65,7 @@
         Solid::Predicate predicate = Solid::Predicate::fromString(string_predicate);
         if (predicate.matches(device)) {
             new_device=true;
-            interestingDesktopFiles<<path;
+            interestingDesktopFiles<<KUrl(path).fileName();
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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