Skip to content
Commit 646c4cb8 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Solve problems with usage of QTemporaryFile on MS-Windows

A call to QTemporaryFile::close() may not close the file but only rewind
the file pointer to the beginning allwing faster re-open. This causes
problems on MS-Windows filesystems, as one cannot e.g. rename the
temporary file in this case because it is still kept open from the
perspective of the filesystem. Only destroying the object really closes
the file on the filesystem.

This change makes sure, that the QTemporaryFile object only lives as
long as it is needed and closed immediately after by destroying the
object.

BUG: 436647
FIXED-IN: 5.1.2
(cherry picked from commit 39785a3d)
parent 60237153
Loading
Loading
Loading
Pipeline #61611 passed with stage
in 19 minutes and 9 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment