Browse Source

Merge pull request #18922 from volzhs/fix-segfault

Fix segfault at quiting editor
Juan Linietsky 7 years ago
parent
commit
66dc73f3ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/gui/color_picker.cpp

+ 1 - 1
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();
 	}
 }