diff options
Diffstat (limited to 'tdecore')
-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; } |