guard against nullptr exception in wxLogGui::Flush

happened eg during wxUnitialize in dnd sample on macOS (open new frame, add shape, quit app)
This commit is contained in:
Stefan Csomor
2021-01-24 19:40:01 +01:00
parent 4d7ca07211
commit 3ccfa976aa

View File

@@ -233,7 +233,7 @@ wxString wxLogGui::GetTitle() const
titleFormat = _("%s Information");
}
return wxString::Format(titleFormat, wxTheApp->GetAppDisplayName());
return wxString::Format(titleFormat, wxTheApp ? wxTheApp->GetAppDisplayName() : _("Application"));
}
void