2
0
Эх сурвалжийг харах

Fix segfault at quiting editor

volzhs 7 жил өмнө
parent
commit
e639db0529

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