[Pkg-owncloud-commits] [owncloud-client] 140/159: Folder: Clear _syncResult better

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:37 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 137bce6dd0d93599692571cdd29261b3ce0aeaa2
Author: Markus Goetz <markus at woboq.com>
Date:   Thu Apr 23 13:29:28 2015 +0200

    Folder: Clear _syncResult better
    
    I had a situation here where we were showing stale desktop notifications when a remote folder
    errored out and then sync finished with _syncResult data from previous sync.
---
 src/gui/folder.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index 0b37518..2f52c10 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -772,6 +772,7 @@ void Folder::startSync(const QStringList &pathList)
     _timeSinceLastSyncStart.restart();
     _syncResult.clearErrors();
     _syncResult.setStatus( SyncResult::SyncPrepare );
+    _syncResult.setSyncFileItemVector(SyncFileItemVector());
     emit syncStateChange();
 
     qDebug() << "*** Start syncing - client version"

-- 
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