Change in glest_editor: main.cpp
void MainWindow::onClose(wxCloseEvent &event) {
delete this;
}
to:
void MainWindow::onClose(wxCloseEvent &event) {
//Code by MuwuM
if ( MessageBox(NULL,"Do you Want to save?" ,"Closing...", MB_YESNO)==IDYES) {
wxCommandEvent ev;
MainWindow::onMenuFileSave(ev);
}
//End Code by MuwuM
delete this;
}