diff --git a/src/solvespace.cpp b/src/solvespace.cpp index b89044d0..0080e9ac 100644 --- a/src/solvespace.cpp +++ b/src/solvespace.cpp @@ -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));