From: Vadim Zeitlin Date: Sat, 14 Jul 2007 20:30:46 +0000 (+0000) Subject: make the path absolute before using it with gtk_file_chooser_set_current_folder(... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/78355ffc7bc37f20e0184bb75731eb86cffdeaa5 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 --- diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 1f12180c32..12439a5e07 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -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() ) {