]> git.saurik.com Git - wxWidgets.git/commitdiff
make the path absolute before using it with gtk_file_chooser_set_current_folder(...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jul 2007 20:30:46 +0000 (20:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jul 2007 20:30:46 +0000 (20:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/filedlg.cpp

index 1f12180c3268a6f279ad189796e238ef7df37c01..12439a5e0713ac932fa8e83781afa83b55c74222 100644 (file)
@@ -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() )
     {