From f33a6328b5ccf00c831df928b395a7875005b947 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Tue, 12 Oct 2021 17:13:24 +0100 Subject: Fix TextFiles not saving when closing the tab --- editor/plugins/script_editor_plugin.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index ca6ecfbd3a..bb97c7a750 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -763,20 +763,24 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) { ScriptEditorBase *current = Object::cast_to(tselected); if (current) { - Ref