fix crash on sla start

This commit is contained in:
remi durand 2021-04-07 02:12:13 +02:00
parent b6d2acfd76
commit 24cfdad2c1

View File

@ -1317,7 +1317,8 @@ void fatal_error(wxWindow* parent)
// Update the UI based on the current preferences.
void GUI_App::update_ui_from_settings(bool apply_free_camera_correction)
{
mainframe->update_ui_from_settings(apply_free_camera_correction);
if(mainframe)
mainframe->update_ui_from_settings(apply_free_camera_correction);
}
void GUI_App::persist_window_geometry(wxTopLevelWindow *window, bool default_maximized)