mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
Local discovery tracking: On success, also wipe _renameTarget
It's possible that the rename target was in the local discovery list.
This commit is contained in:
parent
04e0e22513
commit
0c0049c908
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ void LocalDiscoveryTracker::slotItemCompleted(const SyncFileItemPtr &item)
|
|||
|| item->_instruction == CSYNC_INSTRUCTION_UPDATE_METADATA))) {
|
||||
if (_previousLocalDiscoveryPaths.erase(item->_file.toUtf8()))
|
||||
qCDebug(lcLocalDiscoveryTracker) << "wiped successful item" << item->_file;
|
||||
if (!item->_renameTarget.isEmpty() && _previousLocalDiscoveryPaths.erase(item->_renameTarget.toUtf8()))
|
||||
qCDebug(lcLocalDiscoveryTracker) << "wiped successful item" << item->_renameTarget;
|
||||
} else {
|
||||
_localDiscoveryPaths.insert(item->_file.toUtf8());
|
||||
qCDebug(lcLocalDiscoveryTracker) << "inserted error item" << item->_file;
|
||||
|
|
Loading…
Reference in a new issue