Pretend status-message is a job attribue
This commit is contained in:
parent
2c1c6e4dc5
commit
d62f0c8a56
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue