]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/filedlg.cpp
More samples makefiles
[wxWidgets.git] / src / msw / filedlg.cpp
index f6e81b32fecd79708ab910b134bb84b5a29ec544..6bf29addb8b8595658fa4dbaac6ed12746b16488 100644 (file)
@@ -28,6 +28,7 @@
     #include "wx/dialog.h"
     #include "wx/filedlg.h"
     #include "wx/intl.h"
+    #include "wx/log.h"
 #endif
 
 #include <windows.h>
@@ -325,6 +326,7 @@ int wxFileDialog::ShowModal(void)
 
         m_path = fileNameBuffer;
         m_fileName = wxFileNameFromPath(fileNameBuffer);
+        m_dir = wxPathOnly(fileNameBuffer);
 
 
         //=== Simulating the wxOVERWRITE_PROMPT >>============================