diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2024-04-15 17:34:51 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2024-04-17 20:07:47 +0200 |
commit | b26ec1f5dde6ee77fbf6b96d3ec54cf93d18197e (patch) | |
tree | 6efb702ccc19532995259ab8b241541ef43074ff /tests/manual/touch/main.cpp | |
parent | 171ac8aa4ef107a7c06163aaeba9a37abffccb09 (diff) |
QSaveFile[win]: only use SetFileInformationByHandle when opened with DELETE
SetFileInformationByHandle only works when we have opened the file with
DELETE access. Since the code is shared with QTemporaryFile it is not
necessarily always a given. Since it was anyway falling back to the old
way of doing it it was not a problem, but it is cleaner to only use it
when we know it will work.
Pick-to: 6.7
Change-Id: I3c744734d45272c41e49bb6971adf4f82213d97d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/manual/touch/main.cpp')
0 files changed, 0 insertions, 0 deletions