Issue #4849: Adds option for disabling the save on exit prompt only when the file has been exported (or overwritten) and is not export dirty.