mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Windows: Fix rename of finished file. #3073
The file was still open and therefore couldn't be renamed...
This commit is contained in:
parent
60729f2bbd
commit
7c1281dd06
1 changed files with 1 additions and 1 deletions
|
@ -339,6 +339,7 @@ void PropagateDownloadFileQNAM::start()
|
|||
if (startSize > 0) {
|
||||
if (startSize == _item._size) {
|
||||
qDebug() << "File is already complete, no need to download";
|
||||
_tmpFile.close();
|
||||
downloadFinished();
|
||||
return;
|
||||
}
|
||||
|
@ -489,7 +490,6 @@ QString makeConflictFileName(const QString &fn, const QDateTime &dt)
|
|||
|
||||
void PropagateDownloadFileQNAM::downloadFinished()
|
||||
{
|
||||
|
||||
QString fn = _propagator->getFilePath(_item._file);
|
||||
|
||||
// In case of file name clash, report an error
|
||||
|
|
Loading…
Reference in a new issue