Fix segfault at quiting editor
This commit is contained in:
parent
17e84568a4
commit
e639db0529
|
@ -684,7 +684,7 @@ void ColorPickerButton::_notification(int p_what) {
|
||||||
draw_rect(r, color);
|
draw_rect(r, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST) {
|
if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST && popup) {
|
||||||
popup->hide();
|
popup->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue