UploadDevice: Fix windows issues #7264
authorChristian Kamm <mail@ckamm.de>
Fri, 21 Jun 2019 09:34:59 +0000 (11:34 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:52 +0000 (10:58 +0100)
commit69fa1e4775bc3893f73e5193dcbdb7851e3d40f4
tree6c314eaac2c12507b4d2c970c97a9453bff05039
parentfb47419e84b03f1ed35b0f38ac294f180c80abe4
UploadDevice: Fix windows issues #7264

- Close the UploadDevice to close the QFile after the PUT job is done.
  This allows winvfs to get an oplock on the file later.

- Don't rely on QFile::fileName() to be valid after
  openAndSeekFileSharedRead() was called. The way it is openend on
  Windows makes it have an empty filename.
src/libsync/propagateupload.cpp
src/libsync/propagateupload.h