From kde-commits Tue Jul 17 18:28:43 2012 From: Lukas Tinkl Date: Tue, 17 Jul 2012 18:28:43 +0000 To: kde-commits Subject: [kde-workspace] plasma/generic/dataengines/hotplug: don't skip AudioCDs (whose usage is undefined) Message-Id: <20120717182843.8A8B2A6094 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=134254997602758 Git commit ebcd90ba8ae91e42a51c187eb9dc79c7ebb9a991 by Lukas Tinkl. Committed on 17/07/2012 at 20:26. Pushed by lukas into branch 'master'. don't skip AudioCDs (whose usage is undefined) fixes Device Notifier missing Audio CDs M +3 -2 plasma/generic/dataengines/hotplug/hotplugengine.cpp http://commits.kde.org/kde-workspace/ebcd90ba8ae91e42a51c187eb9dc79c7ebb9a9= 91 diff --git a/plasma/generic/dataengines/hotplug/hotplugengine.cpp b/plasma/= generic/dataengines/hotplug/hotplugengine.cpp index dcdde12..d909fa4 100644 --- a/plasma/generic/dataengines/hotplug/hotplugengine.cpp +++ b/plasma/generic/dataengines/hotplug/hotplugengine.cpp @@ -37,6 +37,7 @@ #include #include #include +#include = //#define HOTPLUGENGINE_TIMING = @@ -191,8 +192,8 @@ void HotplugEngine::onDeviceAdded(Solid::Device &device= , bool added) Solid::DeviceInterface *dev =3D device.asDeviceInterface(Solid::De= viceInterface::StorageVolume); Solid::StorageVolume *volume =3D static_cast(dev); Solid::StorageVolume::UsageType type =3D volume->usage(); - if (type =3D=3D Solid::StorageVolume::Unused || - type =3D=3D Solid::StorageVolume::PartitionTable) { + if ((type =3D=3D Solid::StorageVolume::Unused || + type =3D=3D Solid::StorageVolume::PartitionTable) && !device.= is()) { #ifdef HOTPLUGENGINE_TIMING kDebug() << "storage volume, but not of interest" << t.restart= (); #endif