Fix ZeldaZach review for PR 7494: match by remoteId/guid before remote-delete, only tombstone when file truly missing

This commit is contained in:
Lukas Brübach 2026-10-13 07:19:32 +02:00 • committed by Lukas Brübach
parent fe9f5ad098
commit f9ad700f3c

View file

@ -338,6 +338,9 @@ void DeckSyncManager::onListFinished(const Response &response, const CommandCont
if (localFiles.contains(it.key())) { if (localFiles.contains(it.key())) {
continue; continue;
} }
if (QFileInfo::exists(deckPath + "/" + it.key())) {
continue;
}
if (it.value().remoteId == -1) { if (it.value().remoteId == -1) {
sidecar.remove(it.key()); sidecar.remove(it.key());
continue; continue;