Offer to save file when closing if it is unsaved.

pull/4/head
whitequark 2016-05-11 07:43:04 +00:00
parent 005ff7e31b
commit e129755d66
1 changed files with 3 additions and 0 deletions

View File

@ -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));