]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Fix the root item sync status #4682
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 28 Apr 2016 17:03:13 +0000 (19:03 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 3 May 2016 11:01:51 +0000 (13:01 +0200)
commit32b3023a8e140d5a202e2ef23961e2ab616b092e
treecba64d1ce7e1fea9de6d0e0688be78ae32ebaae7
parenta5df44c757b8797fd1c60d2694fab88679df4572
Fix the root item sync status #4682

Make sure that we push the new status when the status of the SyncEngine
changed. SyncEngine::started comes a bit late, only when the propagation
starts, although it's better in this case since child folders will
only switch to Sync in aboutToPropagate.

Also fix an issue with SyncEngine::findSyncItem when using an empty
fileName; this would match and return the wrong item, even though
not currently happening with the code since fileStatus won't call
it with an empty fileName anymore.
src/libsync/syncengine.cpp
src/libsync/syncfilestatustracker.cpp
src/libsync/syncfilestatustracker.h