diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-29 09:06:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 09:06:00 +0200 |
commit | 4b5d4bbe483e50659320817925da6b564a075faf (patch) | |
tree | 1acde9990cc25aa7f7037ab48d1a97f5e11144d1 | |
parent | 7e1e0f496bbc92f85061182c6c201d41c4cc52ac (diff) | |
parent | fe53c1b0bd14afbc7c33297ca4176d6de1110686 (diff) |
Merge pull request #38235 from BigRed-118/help_tabs_shuffle_fix
Fixed shuffling editor help tabs
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 7af98cf346..80d97e7fa9 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1866,6 +1866,10 @@ void ScriptEditor::_update_script_names() { if (new_cur_tab == -1 && sedata[i].index == cur_tab) { new_cur_tab = i; } + // Update index of sd entries for sorted order + _ScriptEditorItemData sd = sedata[i]; + sd.index = i; + sedata.set(i, sd); } tab_container->set_current_tab(new_prev_tab); tab_container->set_current_tab(new_cur_tab); |