Offer to save file when closing if it is unsaved.
parent
005ff7e31b
commit
e129755d66
|
@ -144,6 +144,9 @@ bool SolveSpaceUI::OpenFile(const std::string &filename) {
|
|||
}
|
||||
|
||||
void SolveSpaceUI::Exit(void) {
|
||||
if(!OkayToStartNewFile())
|
||||
return;
|
||||
|
||||
// Recent files
|
||||
for(int i = 0; i < MAX_RECENT; i++)
|
||||
CnfFreezeString(RecentFile[i], "RecentFile_" + std::to_string(i));
|
||||
|
|
Loading…
Reference in New Issue