diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 6bc006ce84..25a5ceba64 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -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();