Use GetPath instead of GetFileName in file selector, otherwise it doesn't work for files outside the current directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
27a97d02eb
commit
2b15fdfcf3
@ -443,7 +443,7 @@ void LifeFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
if (filedlg.ShowModal() == wxID_OK)
|
||||
{
|
||||
wxFileInputStream stream(filedlg.GetFilename());
|
||||
wxFileInputStream stream(filedlg.GetPath());
|
||||
LifeReader reader(stream);
|
||||
|
||||
// the reader handles errors itself, no need to do anything here
|
||||
|
Loading…
Reference in New Issue
Block a user