1
0
Fork 0

Merge pull request #76597 from Tefatika/fix/tefatika/76578-tab-container-all_tab_in_front-error

Fixed error messages when setting all_tab_in_front of TabContainer
This commit is contained in:
Clay John 2023-05-02 12:28:53 -07:00 committed by GitHub
commit 4a208699e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -564,12 +564,12 @@ void TabContainer::add_child_notify(Node *p_child) {
}
void TabContainer::move_child_notify(Node *p_child) {
Container::move_child_notify(p_child);
if (p_child == tab_bar) {
return;
}
Container::move_child_notify(p_child);
Control *c = Object::cast_to<Control>(p_child);
if (c && !c->is_set_as_top_level()) {
int old_idx = -1;
@ -588,12 +588,12 @@ void TabContainer::move_child_notify(Node *p_child) {
}
void TabContainer::remove_child_notify(Node *p_child) {
Container::remove_child_notify(p_child);
if (p_child == tab_bar) {
return;
}
Container::remove_child_notify(p_child);
Control *c = Object::cast_to<Control>(p_child);
if (!c || c->is_set_as_top_level()) {
return;