ErrorDialog: Fix size and message encoding

This commit is contained in:
Vojtech Kral 2018-05-22 14:33:11 +02:00
parent 306d77559e
commit 360b34944d
3 changed files with 4 additions and 3 deletions

View file

@ -607,7 +607,7 @@ void show_error(wxWindow* parent, const wxString& message) {
void show_error_id(int id, const std::string& message) {
auto *parent = id != 0 ? wxWindow::FindWindowById(id) : nullptr;
show_error(parent, message);
show_error(parent, wxString::FromUTF8(message.data()));
}
void show_info(wxWindow* parent, const wxString& message, const wxString& title){