TextEditor/GMLPlayground: Don't close app if user aborts save on exit

This commit is contained in:
Matthew Jones 2021-06-01 01:28:48 -06:00 committed by Andreas Kling
commit 9720261540
Notes: sideshowbarker 2024-07-18 17:00:03 +09:00
2 changed files with 4 additions and 0 deletions

View file

@ -672,6 +672,8 @@ bool MainWidget::request_close()
if (result == GUI::MessageBox::ExecYes) {
m_save_action->activate();
if (editor().document().is_modified())
return false;
return true;
}