[Pkg-owncloud-commits] [owncloud-client] 138/159: Windows: Fix rename of finished file. #3073

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 7c1281dd0657f420e9a0e8e436b1a822e334b339
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Wed Apr 22 14:45:01 2015 +0200

    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 98a78b4..6aa94ee 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list