summaryrefslogtreecommitdiffstats
path: root/editor/editor_resource_picker.cpp
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2022-03-04 19:16:33 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2022-03-04 19:16:33 -0300
commit917dac78e76cba76165cca9b1c966e52fdd6ec3d (patch)
tree982b03d1c823d9d3f4e0676bb941e82af7bb035c /editor/editor_resource_picker.cpp
parent71835906dd3965eac703137bc8e14abcaa630dfd (diff)
downloadredot-engine-917dac78e76cba76165cca9b1c966e52fdd6ec3d.tar.gz
Replace some bits of code left to work with the new `TabContainer`
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r--editor/editor_resource_picker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp
index 2f14667fc0..fc1e466e9b 100644
--- a/editor/editor_resource_picker.cpp
+++ b/editor/editor_resource_picker.cpp
@@ -337,7 +337,7 @@ void EditorResourcePicker::_edit_menu_cbk(int p_which) {
// Ensure that the FileSystem dock is visible.
TabContainer *tab_container = (TabContainer *)file_system_dock->get_parent_control();
- tab_container->set_current_tab(file_system_dock->get_index());
+ tab_container->set_current_tab(tab_container->get_tab_idx_from_control(file_system_dock));
} break;
default: {