aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorOmar Al Halabi2017-11-19 10:39:31 +0200
committerOmar Al Halabi2017-11-19 13:14:00 +0200
commitcb86f6fbf61263e0cfe73313de595b8e3ffd4bdb (patch)
treea3184b784731d47f019f664733349e18ba59db91 /editor/plugins/script_editor_plugin.cpp
parent0aa4765904b0aea28ccf485b2428b027a5960df4 (diff)
downloadgodot-cb86f6fbf61263e0cfe73313de595b8e3ffd4bdb.tar.gz
godot-cb86f6fbf61263e0cfe73313de595b8e3ffd4bdb.tar.zst
godot-cb86f6fbf61263e0cfe73313de595b8e3ffd4bdb.zip
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 607ccaa4e..85416a570 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