X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a7c1881a1395adf2a5154fece7a1e28d991a599..a002ae4e50a0dec9f0090ef8677488d04b0e427a:/src/gtk/dirdlg.cpp?ds=sidebyside diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 71d0ed4095..7372b32300 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -31,10 +31,6 @@ #include "wx/gtk/private.h" -#ifdef __UNIX__ -#include // chdir -#endif - extern "C" { static void gtk_dirdialog_response_callback(GtkWidget * WXUNUSED(w), gint response, @@ -131,7 +127,7 @@ void wxDirDialog::GTKOnAccept() // change to the directory where the user went if asked if (HasFlag(wxDD_CHANGE_DIR)) { - chdir(m_selectedDirectory); + wxSetWorkingDirectory(m_selectedDirectory); } EndDialog(wxID_OK);