mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-13 08:34:11 +02: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
@ -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 New Issue
Block a user