Fix the copy of the removed file. (#298)

This commit is contained in:
osemmler
2018-06-02 10:44:20 +02:00
committed by probonopd
parent fde31cbbbc
commit fff6974040
+1 -1
View File
@@ -219,7 +219,7 @@ inline QDebug operator<<(QDebug debug, const AppDirInfo &info)
bool copyFilePrintStatus(const QString &from, const QString &to) bool copyFilePrintStatus(const QString &from, const QString &to)
{ {
if (QFile(to).exists()) { if (QFile(to).exists()) {
if (alwaysOwerwriteEnabled) { if (alwaysOwerwriteEnabled && QFileInfo(to) != QFileInfo(from)) {
QFile(to).remove(); QFile(to).remove();
} else { } else {
LogDebug() << QFileInfo(to).fileName() << "already exists at target location"; LogDebug() << QFileInfo(to).fileName() << "already exists at target location";