diff --git a/src/Gui/AutoSaver.cpp b/src/Gui/AutoSaver.cpp index 576ebeedbb..e3c2d18408 100644 --- a/src/Gui/AutoSaver.cpp +++ b/src/Gui/AutoSaver.cpp @@ -83,7 +83,9 @@ void AutoSaver::renameFile(QString dirName, QString file, QString tmpFile) << " -> " << file.toUtf8().constData()); QDir dir(dirName); dir.remove(file); - dir.rename(tmpFile,file); + if (!dir.rename(tmpFile,file)) { + FC_ERR("Failed to rename autosave file " << tmpFile.toStdString() << " to " << file.toStdString() << "\n"); + } } void AutoSaver::setTimeout(int ms)