Properly clean button_add_item
ref in Array/Dict property editors
Fixes #59152.
This commit is contained in:
parent
e4b9406313
commit
e43fa2d35d
1 changed files with 4 additions and 0 deletions
|
@ -253,6 +253,7 @@ void EditorPropertyArray::update_property() {
|
||||||
if (vbox) {
|
if (vbox) {
|
||||||
set_bottom_editor(nullptr);
|
set_bottom_editor(nullptr);
|
||||||
memdelete(vbox);
|
memdelete(vbox);
|
||||||
|
button_add_item = nullptr;
|
||||||
vbox = nullptr;
|
vbox = nullptr;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -408,6 +409,7 @@ void EditorPropertyArray::update_property() {
|
||||||
if (vbox) {
|
if (vbox) {
|
||||||
set_bottom_editor(nullptr);
|
set_bottom_editor(nullptr);
|
||||||
memdelete(vbox);
|
memdelete(vbox);
|
||||||
|
button_add_item = nullptr;
|
||||||
vbox = nullptr;
|
vbox = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -816,6 +818,7 @@ void EditorPropertyDictionary::update_property() {
|
||||||
if (vbox) {
|
if (vbox) {
|
||||||
set_bottom_editor(nullptr);
|
set_bottom_editor(nullptr);
|
||||||
memdelete(vbox);
|
memdelete(vbox);
|
||||||
|
button_add_item = nullptr;
|
||||||
vbox = nullptr;
|
vbox = nullptr;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -1270,6 +1273,7 @@ void EditorPropertyLocalizableString::update_property() {
|
||||||
if (vbox) {
|
if (vbox) {
|
||||||
set_bottom_editor(nullptr);
|
set_bottom_editor(nullptr);
|
||||||
memdelete(vbox);
|
memdelete(vbox);
|
||||||
|
button_add_item = nullptr;
|
||||||
vbox = nullptr;
|
vbox = nullptr;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue