diff options
author | Daniel Ting <danielzting@gmail.com> | 2020-06-30 21:39:12 -0500 |
---|---|---|
committer | Daniel Ting <danielzting@gmail.com> | 2020-06-30 21:39:12 -0500 |
commit | d2a5b92e9be3e244ceb9a86b4ebf904e1db603fc (patch) | |
tree | 56b12c962c36b40d06a3084b4d64f21961898f56 /editor/plugins | |
parent | e820a73f58d7e25562ff2be75e975ec517a6c35b (diff) |
Make "Close and save changes?" actually save
This fixes issue #39844, where the confirmation dialog when a user
attempts to close an unsaved script did not actually save it even after
clicking "Save."
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index fd415d40da..72d287c35c 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -538,7 +538,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) { ScriptEditorBase *current = Object::cast_to<ScriptEditorBase>(tab_container->get_child(selected)); if (current) { if (p_save) { - apply_scripts(); + _menu_option(FILE_SAVE); } Ref<Script> script = current->get_edited_resource(); |