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:
@@ -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
|
||||
|
Reference in New Issue
Block a user