diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-23 14:44:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-23 14:44:37 -0300 |
commit | 2cc640dbede53cfaf04ae37a9063bff386a4d515 (patch) | |
tree | 5ed8824eb2ffb33fb098d8964b223013caaa8520 /tools/editor/plugins | |
parent | 0c6ffcf7b01a5a433a8e41b36203e005b9829d6c (diff) |
Fix wrong condition test for saving, fixes #3287
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 76e4af5f16..34d7e89760 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1018,8 +1018,10 @@ void ScriptEditor::_menu_option(int p_option) { script_create_dialog->popup_centered(Size2(300, 300)); } break; case FILE_SAVE: { - if (!_test_script_times_on_disk()) + + if (_test_script_times_on_disk()) return; + editor->save_resource( current->get_edited_script() ); } break; |