Fix OK statuses not being broadcasted during a sync #3944
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 5 Jan 2016 14:03:23 +0000 (15:03 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 5 Jan 2016 14:08:26 +0000 (15:08 +0100)
commit6e3809528e5d160f5f08e110a8ffd897acd3508a
tree8b9caef04b1f215dd81cefebf0179336cc14f7da
parent60a6b2b0c38e8ea54a0d47735b1a7ec18d2460c4
Fix OK statuses not being broadcasted during a sync #3944

Since the presence of any path in SyncEngine::_syncedItems
would translate in a SYNC status, platforms that don't refresh
all their status cache after an UPDATE_VIEW message like OS X
or Windows would keep displaying that status even after all
files are successfully synchronized.

- Read SyncFileItem::_status to determine the status to display mid-sync
- Match moved paths also to _renameTarget since this might be the
  path to match
- Make sure that PropagateDirectory jobs also set SyncFileItem::_status
  properly
src/libsync/owncloudpropagator.cpp
src/libsync/syncengine.cpp