Fix for when only a default dir is given without a default file

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2007-01-12 18:24:19 +00:00
parent 4b6930c813
commit f241631e6d

View 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();