Skip to content

Commit

Permalink
Treat csync new instruction as nonefiles
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jun 17, 2024
1 parent f217e75 commit b0ae0d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item)
{
emit itemDiscovered(item);

_hasNoneFiles |= (item->_instruction == CSYNC_INSTRUCTION_UPDATE_METADATA
_hasNoneFiles |= (item->_instruction == CSYNC_INSTRUCTION_NEW
|| item->_instruction == CSYNC_INSTRUCTION_UPDATE_METADATA
|| item->_instruction == CSYNC_INSTRUCTION_NONE
// If a file (or every file) has been renamed, it means not all files where deleted
|| item->_instruction == CSYNC_INSTRUCTION_RENAME
Expand Down

0 comments on commit b0ae0d1

Please sign in to comment.