diff options
author | Omar Al Halabi <omar_halabi25@hotmail.com> | 2017-11-19 10:39:31 +0200 |
---|---|---|
committer | Omar Al Halabi <omar_halabi25@hotmail.com> | 2017-11-19 13:14:00 +0200 |
commit | cb86f6fbf61263e0cfe73313de595b8e3ffd4bdb (patch) | |
tree | a3184b784731d47f019f664733349e18ba59db91 | |
parent | 0aa4765904b0aea28ccf485b2428b027a5960df4 (diff) |
fix set_current_tab: Indexp_current=-1 out of size
-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 607ccaa4e7..85416a5700 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1583,7 +1583,7 @@ void ScriptEditor::_update_script_names() { } } - if (_sort_list_on_update) { + if (_sort_list_on_update && !sedata.empty()) { sedata.sort(); // change actual order of tab_container so that the order can be rearranged by user |