From fff6974040345225a33dc73c0fc5af083695ec04 Mon Sep 17 00:00:00 2001 From: osemmler <31127706+osemmler@users.noreply.github.com> Date: Sat, 2 Jun 2018 10:44:20 +0200 Subject: [PATCH] Fix the copy of the removed file. (#298) --- tools/linuxdeployqt/shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/linuxdeployqt/shared.cpp b/tools/linuxdeployqt/shared.cpp index 1029eb5..794fa64 100644 --- a/tools/linuxdeployqt/shared.cpp +++ b/tools/linuxdeployqt/shared.cpp @@ -219,7 +219,7 @@ inline QDebug operator<<(QDebug debug, const AppDirInfo &info) bool copyFilePrintStatus(const QString &from, const QString &to) { if (QFile(to).exists()) { - if (alwaysOwerwriteEnabled) { + if (alwaysOwerwriteEnabled && QFileInfo(to) != QFileInfo(from)) { QFile(to).remove(); } else { LogDebug() << QFileInfo(to).fileName() << "already exists at target location";