Fixes #3351: same file was used as source and destination in file contents comparison
This commit is contained in:
@@ -108,7 +108,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons
|
|||||||
QString sourceContents = sourceFile.readAll();
|
QString sourceContents = sourceFile.readAll();
|
||||||
sourceFile.close();
|
sourceFile.close();
|
||||||
// try to retrieve destination contents
|
// try to retrieve destination contents
|
||||||
QFile destinationFile(path);
|
QFile destinationFile(destinationPath);
|
||||||
if (destinationFile.open(QFile::ReadOnly)) {
|
if (destinationFile.open(QFile::ReadOnly)) {
|
||||||
QString destinationContents = destinationFile.readAll();
|
QString destinationContents = destinationFile.readAll();
|
||||||
destinationFile.close();
|
destinationFile.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user