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:
parent
4d7ca07211
commit
3ccfa976aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue