mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Properly clean button_add_item
ref in Dict property editor
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
c819fe68dd
commit
9281e140dd
@ -849,6 +849,7 @@ void EditorPropertyDictionary::update_property() {
|
||||
if (vbox) {
|
||||
set_bottom_editor(nullptr);
|
||||
memdelete(vbox);
|
||||
button_add_item = nullptr;
|
||||
vbox = nullptr;
|
||||
}
|
||||
return;
|
||||
@ -1182,6 +1183,7 @@ void EditorPropertyDictionary::update_property() {
|
||||
if (vbox) {
|
||||
set_bottom_editor(nullptr);
|
||||
memdelete(vbox);
|
||||
button_add_item = nullptr;
|
||||
vbox = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user