Merge pull request #13024 from omar25h/set_current_tab_fix

fix set_current_tab: Indexp_current=-1 out of size
This commit is contained in:
George Marques 2017-11-19 13:32:22 -02:00 committed by GitHub
commit 3b596cdbe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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