From 7c1281dd0657f420e9a0e8e436b1a822e334b339 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 22 Apr 2015 14:45:01 +0200 Subject: [PATCH] Windows: Fix rename of finished file. #3073 The file was still open and therefore couldn't be renamed... --- src/libsync/propagatedownload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 98a78b45d..6aa94eed6 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -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