From: Markus Goetz Date: Thu, 23 Apr 2015 11:29:28 +0000 (+0200) Subject: Folder: Clear _syncResult better X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1803^2~160 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=137bce6dd0d93599692571cdd29261b3ce0aeaa2;p=nextcloud-desktop.git 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. --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 0b37518ee..2f52c102b 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"