diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-11-27 02:05:52 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-11-27 02:05:52 -0600 |
commit | 7b66a28f379f5838b67e55b4dbf7960fef2f5b8e (patch) | |
tree | 4a4ffe786e200e1879377552e6f37a24c6b2078d /tdecore/tdehw/tdehardwaredevices.cpp | |
parent | 777f25f20f991357acf93582471900f6b85532a1 (diff) | |
download | tdelibs-7b66a28f379f5838b67e55b4dbf7960fef2f5b8e.tar.gz tdelibs-7b66a28f379f5838b67e55b4dbf7960fef2f5b8e.zip |
Add Hidden storage device attribute
This relates to Bug 2211
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index fd8ee3ba5..bbf266ca2 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -2497,6 +2497,10 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist sdevice->internalSetDiskType(disktype); device = classifyUnknownDeviceByExternalRules(dev, device, true); // Check external rules for possible subtype overrides disktype = sdevice->diskType(); // The type can be overridden by an external rule + + if (TQString(udev_device_get_property_value(dev, "UDISKS_IGNORE")) == "1") { + diskstatus = diskstatus | TDEDiskDeviceStatus::Hidden; + } if ((disktype & TDEDiskDeviceType::CDROM) || (disktype & TDEDiskDeviceType::CDR) |