Revert "CUPS: Add support for accessible IPP printers"

This reverts commit 2f5f276b4a,
after which valid printers are no longer listed anymore.

Fixes: QTBUG-105242
Pick-to: 6.2 6.3 6.4 5.15
Change-Id: I6a388acff2a8033ad1052319edcf7e41a2f72c8f
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
This commit is contained in:
Volker Hilsheimer 2022-07-28 16:31:18 +02:00
parent f7d42e6b0c
commit f387bb55d4

View File

@ -129,12 +129,9 @@ QStringList QCupsPrinterSupport::availablePrintDeviceIds() const
list.reserve(count);
for (int i = 0; i < count; ++i) {
QString printerId = QString::fromLocal8Bit(dests[i].name);
if (dests[i].instance) {
if (dests[i].instance)
printerId += u'/' + QString::fromLocal8Bit(dests[i].instance);
list.append(printerId);
} else if (cupsGetOption("printer-uri-supported", dests[i].num_options, dests[i].options)) {
list.append(printerId);
}
list.append(printerId);
}
cupsFreeDests(count, dests);
return list;