diff options
author | volzhs <volzhs@gmail.com> | 2018-05-16 16:54:04 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2018-05-16 16:54:04 +0900 |
commit | e639db0529d97f6b797503617906cd26c2a06021 (patch) | |
tree | 2322b5bae458e5bc8ff31eff5453a6a088a5b740 | |
parent | 17e84568a45df3b81c3a40dc8eab8dbc1f95329a (diff) |
Fix segfault at quiting editor
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 1e0db6e8cd..597ce33fea 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -684,7 +684,7 @@ void ColorPickerButton::_notification(int p_what) { draw_rect(r, color); } - if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST) { + if (p_what == MainLoop::NOTIFICATION_WM_QUIT_REQUEST && popup) { popup->hide(); } } |