From f241631e6d20912079eb37833e73743a80812655 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 12 Jan 2007 18:24:19 +0000 Subject: [PATCH] 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 --- src/gtk/filedlg.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();