02-13-2023, 10:17 PM
Some digging turned up a Qt object designed to handle the issues here. It is a QSaveFile, used for writing files that must not fail or leave broken files behind. It was easy to implement. It is in the update posted today.