Pretend status-message is a job attribue

This commit is contained in:
Anton Thomasson 2020-06-01 22:05:43 +02:00
parent 2c1c6e4dc5
commit d62f0c8a56

View file

@ -117,6 +117,11 @@ void IppPrinter::getPrinterAttributesFinished(QNetworkReply *reply)
IppMsg resp(reply); IppMsg resp(reply);
qDebug() << resp.getStatus() << resp.getOpAttrs() << resp.getPrinterAttrs(); qDebug() << resp.getStatus() << resp.getOpAttrs() << resp.getPrinterAttrs();
_attrs = resp.getPrinterAttrs(); _attrs = resp.getPrinterAttrs();
if(resp.getOpAttrs().keys().contains("status-message"))
{ // Sometimes there are no response attributes at all,
// maybe status-message from the operation attributes is somewhat useful
_attrs["status-message"] = resp.getOpAttrs()["status-message"];
}
} }
catch(std::exception e) catch(std::exception e)
{ {