]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/filedlg.cpp
applied patch 890642: wxRE_ADVANCED flag and docs
[wxWidgets.git] / src / gtk1 / filedlg.cpp
index 9866a89f3a524c8da4b8c94154baec804b86ad58..88b285e8ea789d81e9a40886a4e50300db2df507 100644 (file)
@@ -91,7 +91,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial
         wxString cwd;
         wxSplitPath(filename, &cwd, NULL, NULL);
 
-        if ( cwd != wxGetWorkingDirectory() )
+        if ( cwd != wxGetCwd() )
         {
             wxSetWorkingDirectory(cwd);
         }