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:
parent
4b6930c813
commit
f241631e6d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user