wxFileDialog* ctrl = new wxFileDialog(this, L"Open", "/home/example", "example.test", "|All files (*.*)|*.*", wxFD_OPEN | wxFD_FILE_MUST_EXIST, wxDefaultPosition);
if(ctrl->ShowModal() == wxID_OK)
{
ctrl->GetPath().wx_str()); // = '/'
}
ctrl->Destroy();
No matter what I do, I'm always getting "/", a forward slash, from ctrl->GetPath().
Any idea why?