summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2017-06-17 12:48:38 +0200
committerSlávek Banko <[email protected]>2017-06-17 12:48:51 +0200
commita8e587a9733dd076c0356dbfcef561eb7ed45e90 (patch)
tree385ef99d6d71381636b604848bc97519890df1c6
parent2b8dc1971b71e3549292a1286465f741ba08fa49 (diff)
downloadtdelibs-a8e587a9733dd076c0356dbfcef561eb7ed45e90.tar.gz
tdelibs-a8e587a9733dd076c0356dbfcef561eb7ed45e90.zip
tdehwlib: Add a rule for classifying parport device
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit eb6f8213d42aac2911c7b8880628c786b0223935)
-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 930a5819f..7449bf758 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -2196,7 +2196,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") {