Reset position for decoded answer when passed as failure response

This commit is contained in:
Anton Thomasson 2022-08-13 21:02:00 +02:00
parent ac84fe079e
commit 38d5a95982

View file

@ -106,6 +106,7 @@ void PrinterWorker::print2(QString filename, QString mimeType, QString targetFor
}
else
{
resData.setPos(0);
QMetaObject::invokeMethod(_printer, "printRequestFinished", Qt::QueuedConnection,
Q_ARG(CURLcode, res),
Q_ARG(Bytestream, resData));