make the path absolute before using it with gtk_file_chooser_set_current_folder() (patch 1753796)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2d1593cd4b
commit
78355ffc7b
@ -237,6 +237,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
||||
fn.AssignDir(defaultDir);
|
||||
|
||||
// set the initial file name and/or directory
|
||||
fn.MakeAbsolute(); // GTK+ needs absolute path
|
||||
const wxString dir = fn.GetPath();
|
||||
if ( !dir.empty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user