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

List:       kde-commits
Subject:    KDE/kdelibs/solid/solid/backends/hal
From:       Kevin Ottens <ervin () kde ! org>
Date:       2009-02-22 17:59:41
Message-ID: 1235325581.258962.23798.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 930119 by ervin:

org.freedesktop.Hal.Volume is not a constant interface (oh joy!), so
test for the Mount method to be really really sure we can expose
StorageAccess on the device.
(e.g. avoid having audio cds as false positive)


 M  +1 -1      haldevice.cpp  


--- trunk/KDE/kdelibs/solid/solid/backends/hal/haldevice.cpp #930118:930119
@@ -339,7 +339,7 @@
     if (type==Solid::DeviceInterface::GenericInterface) {
         return true;
     } else if (type==Solid::DeviceInterface::StorageAccess) {
-        return property("info.interfaces").toStringList().contains("org.freedesktop.Hal.Device.Volume")
 +        return property("org.freedesktop.Hal.Device.Volume.method_names").toStringList().contains("Mount")
                
             || property("info.interfaces").toStringList().contains("org.freedesktop.Hal.Device.Volume.Crypto");
  }
     else if (type==Solid::DeviceInterface::Video) {


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

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