diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-01-23 04:30:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-01-23 04:30:15 +0100 |
commit | bec14c7a286a644f804000c97275de9284051641 (patch) | |
tree | ac99ae95a27f839b493f13301679f770c735f9d4 /tdecore/tdehw | |
parent | ad6b5add68f544725f52317cc25af7cc8e9e45f1 (diff) | |
download | tdelibs-bec14c7a286a644f804000c97275de9284051641.tar.gz tdelibs-bec14c7a286a644f804000c97275de9284051641.zip |
Add floppy into disk type clasification in tdehwlib
This resolves Bug 2567
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ba2a3bc188922722090b4afd1623451886b1520c)
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 5c6ad9e27..7f30b6b92 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -1011,6 +1011,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; } |