From: Olivier Goffart Date: Wed, 18 Jul 2018 10:15:13 +0000 (+0200) Subject: New disco algo: Fix TestSyncFileStatusTracker X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~548 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=710934bdbd88f28e1614e0df33b69b6c1ec13313;p=nextcloud-desktop.git New disco algo: Fix TestSyncFileStatusTracker --- diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index b45a3259a..aa1ea5bd5 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -440,6 +440,11 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item) } } } + + // check for blacklisting of this item. + // if the item is on blacklist, the instruction was set to ERROR + checkErrorBlacklisting(*item); + _needsUpdate = true; _syncItems.append(item); slotNewItem(item); } @@ -607,15 +612,6 @@ int SyncEngine::treewalkFile(csync_file_stat_t * /*file*/, csync_file_stat_t * / break; } - item->_direction = dir; - if (instruction != CSYNC_INSTRUCTION_NONE) { - // check for blacklisting of this item. - // if the item is on blacklist, the instruction was set to ERROR - checkErrorBlacklisting(*item); - } - - _needsUpdate = true; - slotNewItem(item);