]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed to fill in m_dir member when file selected so that GetDirectory
authorJ. Russell Smyth <drfish@cox.net>
Wed, 4 Aug 1999 20:19:40 +0000 (20:19 +0000)
committerJ. Russell Smyth <drfish@cox.net>
Wed, 4 Aug 1999 20:19:40 +0000 (20:19 +0000)
returns the correct value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/filedlg.cpp

index 79c17ba8650794b0c99e82b467a497f8dda34f92..6bf29addb8b8595658fa4dbaac6ed12746b16488 100644 (file)
@@ -326,6 +326,7 @@ int wxFileDialog::ShowModal(void)
 
         m_path = fileNameBuffer;
         m_fileName = wxFileNameFromPath(fileNameBuffer);
+        m_dir = wxPathOnly(fileNameBuffer);
 
 
         //=== Simulating the wxOVERWRITE_PROMPT >>============================