Fix segfault at quiting editor

(cherry picked from commit e639db0529)
This commit is contained in:
volzhs 2018-05-16 16:54:04 +09:00 committed by Hein-Pieter van Braam
parent 59a00c3cdd
commit a34daf6851
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ void ColorPickerButton::_notification(int p_what) {
draw_rect(r, picker->get_pick_color()); draw_rect(r, picker->get_pick_color());
} }
if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST) { if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST && popup) {
popup->hide(); popup->hide();
} }
} }