diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index ff17c05..9dfe796 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -117,6 +117,11 @@ void IppPrinter::getPrinterAttributesFinished(QNetworkReply *reply) IppMsg resp(reply); qDebug() << resp.getStatus() << resp.getOpAttrs() << 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) {