summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:48:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:48:38 +0200
commiteb6f8213d42aac2911c7b8880628c786b0223935 (patch)
treed0158a7062cad9299d6ddccedaba4b9f966ccfcf
parentcc4f1996df344ff06b34931a362037af25a66ef9 (diff)
downloadtdelibs-eb6f8213d42aac2911c7b8880628c786b0223935.tar.gz
tdelibs-eb6f8213d42aac2911c7b8880628c786b0223935.zip
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 c5635e7c7..a4e352d60 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") {