From kde-commits Sun Feb 22 17:59:41 2009 From: Kevin Ottens Date: Sun, 22 Feb 2009 17:59:41 +0000 To: kde-commits Subject: KDE/kdelibs/solid/solid/backends/hal Message-Id: <1235325581.258962.23798.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123532558930312 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) {