Add floppy into disk type clasification in tdehwlib

This resolves Bug 2567

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 9 years ago
parent 68102d50e9
commit ba2a3bc188

@ -1012,6 +1012,11 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
disktype = disktype | TDEDiskDeviceType::USB; 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") { if (disktypestring.upper() == "ZIP") {
disktype = disktype | TDEDiskDeviceType::Zip; disktype = disktype | TDEDiskDeviceType::Zip;
} }

Loading…
Cancel
Save