QtPrintSupport: cleanup CUPS tmp files
Set fd so that it gets closed in QPdfPrintEnginePrivate::closePrintDevice() Task-number: QTBUG-14724 Change-Id: Ic9c02c92b07ece92911d7bc3eac79689b4864253 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
parent
bad1384102
commit
99bab571b4
@ -180,6 +180,7 @@ bool QCupsPrintEnginePrivate::openPrintDevice()
|
||||
cupsTempFile = ret.second;
|
||||
outDevice = new QFile();
|
||||
static_cast<QFile *>(outDevice)->open(ret.first, QIODevice::WriteOnly);
|
||||
fd = ret.first;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user