Fix the copy of the removed file. (#298)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user