diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-09-22 07:09:38 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-09-22 11:34:31 -0700 |
commit | ad9108e2e96ebf67147a72a7dab00398ff637695 (patch) | |
tree | a4c15adcfc17966b76575aba1049ece13f601303 /src/corelib/io/qfile.cpp | |
parent | a07f35409bc1e129b027fc7ccb312949a454f66e (diff) |
QFile::copy: call syncToDisk on destination
Syncing the source makes no sense.
Fixes: QTBUG-86806
Change-Id: I0d3ff441bec041728945fffd1637205d9cf6ab72
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r-- | src/corelib/io/qfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index 22ba9a3631..77c83d08b6 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -838,7 +838,7 @@ QFile::copy(const QString &newName) if (!error) { // Sync to disk if possible. Ignore errors (e.g. not supported). - d->fileEngine->syncToDisk(); + out.d_func()->fileEngine->syncToDisk(); if (!out.rename(newName)) { error = true; |