From bec14c7a286a644f804000c97275de9284051641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 23 Jan 2016 04:30:00 +0100 Subject: Add floppy into disk type clasification in tdehwlib This resolves Bug 2567 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit ba2a3bc188922722090b4afd1623451886b1520c) --- tdecore/tdehw/tdehardwaredevices.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tdecore/tdehw') 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; } -- cgit v1.2.1