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();