add message box on save

This commit is contained in:
uvos 2022-04-15 12:13:27 +02:00
parent 09b23fc296
commit a6aad07f05
3 changed files with 15 additions and 3 deletions

View file

@ -168,7 +168,7 @@ bool MainObject::storeJsonObjectToDisk(const QJsonObject& json, QString filePath
file.write(document.toJson());
file.close();
QFile::remove(filePath);
file.rename(filePath);
file.rename(filePath);
return true;
}
}