summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPaweł Fertyk <pfertyk@pfertyk.me>2022-03-08 00:19:21 +0100
committerPaweł Fertyk <pfertyk@pfertyk.me>2022-03-08 00:19:21 +0100
commit5381a27f792e8d3e23eb4e50dda531abcd0503cf (patch)
tree4e46f5eb369cbce33462c89300eeb85e10e28cee /scene
parentf488a841c7225a4d80abbc04c74079fbbac01c77 (diff)
Fix crash with all_tabs_in_front
Fixes #58790.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tab_container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index 102fe18502..6e1f506e58 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -624,7 +624,7 @@ void TabContainer::set_all_tabs_in_front(bool p_in_front) {
all_tabs_in_front = p_in_front;
remove_child(tab_bar);
- add_child(tab_bar, false, all_tabs_in_front ? INTERNAL_MODE_BACK : INTERNAL_MODE_FRONT);
+ add_child(tab_bar, false, all_tabs_in_front ? INTERNAL_MODE_FRONT : INTERNAL_MODE_BACK);
}
bool TabContainer::is_all_tabs_in_front() const {