Skip to content

Commit fff6974

Browse files
osemmlerprobonopd
authored andcommitted
Fix the copy of the removed file. (probonopd#298)
1 parent fde31cb commit fff6974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/linuxdeployqt/shared.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ inline QDebug operator<<(QDebug debug, const AppDirInfo &info)
219219
bool copyFilePrintStatus(const QString &from, const QString &to)
220220
{
221221
if (QFile(to).exists()) {
222-
if (alwaysOwerwriteEnabled) {
222+
if (alwaysOwerwriteEnabled && QFileInfo(to) != QFileInfo(from)) {
223223
QFile(to).remove();
224224
} else {
225225
LogDebug() << QFileInfo(to).fileName() << "already exists at target location";

0 commit comments

Comments
 (0)