wxString conversion cleanup.

This commit is contained in:
Jordan Woyak
2013-03-02 20:34:53 -06:00
parent 6c8adf6130
commit e183711d74
5 changed files with 15 additions and 32 deletions

View File

@ -209,7 +209,7 @@ void CCodeWindow::OnProfilerMenu(wxCommandEvent& event)
break;
}
wxString OpenCommand;
OpenCommand = filetype->GetOpenCommand(wxString::From8BitData(filename.c_str()));
OpenCommand = filetype->GetOpenCommand(StrToWxStr(filename));
if(!OpenCommand.IsEmpty())
wxExecute(OpenCommand, wxEXEC_SYNC);
}