Menu

#51 Do not touch the target file if the export preconditions fail

None
open
nobody
None
3
2013-04-03
2013-04-03
No

When exporting an SCStudio diagram, a dialog prompts the user for the target file. If an existing file is selected and the "Overwrite?" dialog is confirmed, the export algorithm is started. The thing is that if it fails due to some unmet preconditions, the original file (selected for overwriting) is deleted while no new file is actually created. An expected behaviour is either to rewrite the original file with some contents, or not to touch it at all.

The export preconditions should be run even before prompting for the target file, thus, eliminating the mentioned odd.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.