Apply suggestion from @ZeldaZach

Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
BruebachL 2026-11-08 19:12:42 +01:00 • committed by Lukas Brübach
parent b611e8ea6f
commit b10abad3a3

View file

@ -666,6 +666,13 @@ void DeckSyncManager::handleConflictDownload(const QString &relativePath, const
processNext();
return;
}
if (serverDeck.getContentHash() == localFiles.value(relativePath).hash) {
// Same deck, the row just predates hashes: upload once so the server stamps
// hash and last_modified instead of asking about identical content.
applyUpload(relativePath, ctx.serverPath, ctx.deckId, ctx.guid);
processNext();
return;
}
DeckSyncSidecar sidecar(sidecarPath);
sidecar.load();