]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Fix the sync status push for parent directories #4682
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 28 Apr 2016 12:38:46 +0000 (14:38 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 3 May 2016 11:01:51 +0000 (13:01 +0200)
commita5df44c757b8797fd1c60d2694fab88679df4572
treec40d5c36d1ea5e31ad07119d9551cac864520840
parent641125eac162a0dbd3bcf2ee792688bb7349ad93
Fix the sync status push for parent directories #4682

As before, we rely on metadata-update SyncFileItem entries for parent
directories to notify us that a directory contains files to propagate,
and to know when all children were propagated through its itemCompleted
signal.

Those metadata SyncFileItems however have a None direction and we need
to add a explicit directory check to show them as Sync.
This fix also handles new files as well as existing ones, so no need
to keep a separate logic for new files.
src/libsync/syncfilestatustracker.cpp