summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-01-23 04:30:00 +0100
committerSlávek Banko <[email protected]>2016-01-23 04:30:00 +0100
commitba2a3bc188922722090b4afd1623451886b1520c (patch)
tree64780526fc110f8cb5f1e3dd623e741f10c12479 /tdecore/tdehw
parent68102d50e99fe35442f78be21cf8b720481e7e0b (diff)
downloadtdelibs-ba2a3bc188922722090b4afd1623451886b1520c.tar.gz
tdelibs-ba2a3bc188922722090b4afd1623451886b1520c.zip
Add floppy into disk type clasification in tdehwlib
This resolves Bug 2567 Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 547c24e4d..a1eef5060 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -1012,6 +1012,11 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
disktype = disktype | TDEDiskDeviceType::USB;
}
+ if ((disktypestring.upper() == "FLOPPY")
+ || (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLOPPY")) == "1")) {
+ disktype = disktype | TDEDiskDeviceType::Floppy;
+ }
+
if (disktypestring.upper() == "ZIP") {
disktype = disktype | TDEDiskDeviceType::Zip;
}