Fix compilation with wchar_t based wxstring

This commit is contained in:
Ilari Liusvaara 2013-09-18 14:32:04 +03:00
parent a6c13a7c9d
commit 2477d45f29

View file

@ -70,7 +70,7 @@ filedialog_output_params show_filedialog(wxWindow* parent, const std::string& ti
d->SetFilename(towxstring(defaultname));
d->SetFilterIndex(p.default_type);
if(p.default_filename != "")
d->SetFilename(p.default_filename);
d->SetFilename(towxstring(p.default_filename));
if(d->ShowModal() == wxID_CANCEL)
throw canceled_exception();
std::string filename = tostdstring(d->GetPath());