]> git.saurik.com Git - wxWidgets.git/commitdiff
Use GetPath instead of GetFileName in file selector, otherwise it doesn't work for...
authorGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 10 May 2001 06:35:42 +0000 (06:35 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 10 May 2001 06:35:42 +0000 (06:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/life.cpp

index f4f80eac16a7c683d357cdc1a390543764073a48..0043a399cc99cf43f5bcd02f5e506d764eff7686 100644 (file)
@@ -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