]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for when only a default dir is given without a default file
authorRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:24:19 +0000 (18:24 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:24:19 +0000 (18:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filedlg.cpp

index 6bc006ce84d8fae73c8e07c3e8a0bca8f75685b4..25a5ceba6488715317b588f12158d3904841e8a5 100644 (file)
@@ -230,6 +230,8 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
         fn.Assign(defaultFileName);
     else if ( !defaultFileName.empty() )
         fn.Assign(defaultDir, defaultFileName);
+    else
+        fn.AssignDir(defaultDir);
 
     // set the initial file name and/or directory
     wxString fname = fn.GetFullName();