diff options
author | Slávek Banko <[email protected]> | 2016-01-23 04:30:00 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-01-23 04:30:00 +0100 |
commit | ba2a3bc188922722090b4afd1623451886b1520c (patch) | |
tree | 64780526fc110f8cb5f1e3dd623e741f10c12479 /tdecore/tdehw | |
parent | 68102d50e99fe35442f78be21cf8b720481e7e0b (diff) | |
download | tdelibs-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.cpp | 5 |
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; } |