mirror of
https://github.com/godotengine/godot.git
synced 2024-11-14 16:13:08 +00:00
fix crash on exit for popup, fixes #1676
This commit is contained in:
parent
81f36b768d
commit
65c96a71bd
@ -524,13 +524,15 @@ void Control::_notification(int p_notification) {
|
||||
|
||||
if (data.MI) {
|
||||
|
||||
data.window->window->modal_stack.erase(data.MI);
|
||||
if (data.window && data.window->window)
|
||||
data.window->window->modal_stack.erase(data.MI);
|
||||
data.MI=NULL;
|
||||
}
|
||||
|
||||
if (data.SI) {
|
||||
//erase from subwindows
|
||||
data.window->window->subwindows.erase(data.SI);
|
||||
if (data.window && data.window->window)
|
||||
data.window->window->subwindows.erase(data.SI);
|
||||
data.SI=NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user