]> git.saurik.com Git - wxWidgets.git/commitdiff
expand . into cwd
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 Jan 2002 23:36:57 +0000 (23:36 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 8 Jan 2002 23:36:57 +0000 (23:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirdlgg.cpp

index c7a01c99c1435fbdc7e158227f35301ae49141bf..880836a0023b9c7ef3b7e43fc2c8d334c09d4e82 100644 (file)
@@ -68,7 +68,9 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
 
     m_path = defaultPath;
     if (m_path == wxT("~"))
-        wxGetHomeDir( &m_path );
+        wxGetHomeDir(&m_path);
+    if (m_path == wxT("."))
+        m_path = wxGetCwd();
 
     wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );