diff options
author | Teemu Katajisto <teemu.katajisto@digia.com> | 2012-09-27 07:24:34 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 07:59:03 (GMT) |
commit | 8cc85123aee262f9ac061908aff0360247077075 (patch) | |
tree | 1c5b2d940de9489ab4b225d1a3be9458a1a07b02 /src/gui/painting | |
parent | b66b145633e19a7f70aade0943e0c8efb5169a59 (diff) | |
download | Qt-8cc85123aee262f9ac061908aff0360247077075.zip Qt-8cc85123aee262f9ac061908aff0360247077075.tar.gz Qt-8cc85123aee262f9ac061908aff0360247077075.tar.bz2 |
cleanup CUPS tmp files
Set fd in openPrintDevice() so that it gets cleaned up properly
in closePrintDevice().
Backported from the Qt5 commit:
99bab571b4cb41362e891f1bb1e812119701c932
Task-number: QTBUG-14724
Change-Id: I02968d597822b636078ae89566dd8ed8a948019b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpdf.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index cf9cd95..d75f654 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1686,6 +1686,7 @@ bool QPdfBaseEnginePrivate::openPrintDevice() cupsTempFile = ret.second; outDevice = new QFile(); static_cast<QFile *>(outDevice)->open(ret.first, QIODevice::WriteOnly); + fd = ret.first; #endif #ifndef QT_NO_LPR } else { |