|
|
@ -275,8 +275,7 @@ void CustomStorage::handleCompleteFiles(const QString &savePath) |
|
|
|
QFile completeFile {saveDir.absoluteFilePath(completeFilePath)}; |
|
|
|
QFile completeFile {saveDir.absoluteFilePath(completeFilePath)}; |
|
|
|
if (completeFile.exists()) { |
|
|
|
if (completeFile.exists()) { |
|
|
|
QFile incompleteFile {saveDir.absoluteFilePath(filePath)}; |
|
|
|
QFile incompleteFile {saveDir.absoluteFilePath(filePath)}; |
|
|
|
if (incompleteFile.exists()) |
|
|
|
incompleteFile.remove(); |
|
|
|
incompleteFile.remove(); |
|
|
|
|
|
|
|
completeFile.rename(incompleteFile.fileName()); |
|
|
|
completeFile.rename(incompleteFile.fileName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|