summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp4
-rw-r--r--tdecore/tdehw/tdestoragedevice.h1
2 files changed, 5 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)
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h
index b3a70763b..4616138b5 100644
--- a/tdecore/tdehw/tdestoragedevice.h
+++ b/tdecore/tdehw/tdestoragedevice.h
@@ -105,6 +105,7 @@ enum TDEDiskDeviceStatus {
UsesDevice = 0x00000020,
ContainsFilesystem = 0x00000040,
Hotpluggable = 0x00000080,
+ Hidden = 0x00000100,
Other = 0x80000000
};