[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/KDE/4.9] plasma/generic/dataengines/hotplug: don't skip AudioCDs (whose usage is unde
From: Lukas Tinkl <lukas () kde ! org>
Date: 2012-07-17 18:27:07
Message-ID: 20120717182707.7E69AA6094 () git ! kde ! org
[Download RAW message or body]
Git commit 234f9f05e71dc9fcf2f3581dc14cdc29cd1fd3b4 by Lukas Tinkl.
Committed on 17/07/2012 at 20:26.
Pushed by lukas into branch 'KDE/4.9'.
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/234f9f05e71dc9fcf2f3581dc14cdc29cd1fd3b4
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 <Solid/DeviceInterface>
#include <Solid/StorageDrive>
#include <Solid/StorageVolume>
+#include <Solid/OpticalDisc>
//#define HOTPLUGENGINE_TIMING
@@ -191,8 +192,8 @@ void HotplugEngine::onDeviceAdded(Solid::Device &device, bool \
added)
Solid::DeviceInterface *dev = \
device.asDeviceInterface(Solid::DeviceInterface::StorageVolume);
Solid::StorageVolume *volume = static_cast<Solid::StorageVolume *>(dev);
Solid::StorageVolume::UsageType type = volume->usage();
- if (type == Solid::StorageVolume::Unused ||
- type == Solid::StorageVolume::PartitionTable) {
+ if ((type == Solid::StorageVolume::Unused ||
+ type == Solid::StorageVolume::PartitionTable) && \
!device.is<Solid::OpticalDisc>()) { #ifdef HOTPLUGENGINE_TIMING
kDebug() << "storage volume, but not of interest" << t.restart();
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic