From ba2a3bc188922722090b4afd1623451886b1520c 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 --- 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 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; } -- cgit v1.2.1