From e33e83f2b5f0a786361e724e9714392485fbbf30 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Fri, 15 Apr 2016 15:27:27 +0200 Subject: [PATCH] Fixes #3351: same file was used as source and destination in file contents comparison --- companion/src/process_sync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/process_sync.cpp b/companion/src/process_sync.cpp index 9a1a53e5b..5a19b7baf 100644 --- a/companion/src/process_sync.cpp +++ b/companion/src/process_sync.cpp @@ -108,7 +108,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons QString sourceContents = sourceFile.readAll(); sourceFile.close(); // try to retrieve destination contents - QFile destinationFile(path); + QFile destinationFile(destinationPath); if (destinationFile.open(QFile::ReadOnly)) { QString destinationContents = destinationFile.readAll(); destinationFile.close();