summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 10:48:38 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-06-17 10:48:38 (GMT)
commiteb6f8213d42aac2911c7b8880628c786b0223935 (patch)
treed0158a7062cad9299d6ddccedaba4b9f966ccfcf
parentcc4f1996df344ff06b34931a362037af25a66ef9 (diff)
downloadtdelibs-eb6f8213.zip
tdelibs-eb6f8213.tar.gz
tdehwlib: Add a rule for classifying parport device
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index c5635e7..a4e352d 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -2243,7 +2243,8 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Serial);
}
}
- if (devicesubsystem == "ppdev") {
+ if ((devicesubsystem == "ppdev")
+ || (devicesubsystem == "parport")) {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Parallel);
}
if (devicesubsystem == "printer") {