X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9823d1c5d1e46420d29cb4d05d8ea66308c10663..72625b36b6fdaea839a5132e8f5d52dea7155bec:/src/gtk/dirdlg.cpp diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index de1449c750..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.fn_str()); + wxSetWorkingDirectory(m_selectedDirectory); } EndDialog(wxID_OK);