]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/filedlg.cpp
Applied patch [ 818941 ] Initialize vars and clear wxImageList
[wxWidgets.git] / src / gtk / filedlg.cpp
index b28750152af75c763e54c2b2c75fef3d8b1e5708..88b285e8ea789d81e9a40886a4e50300db2df507 100644 (file)
@@ -7,10 +7,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "filedlg.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/filedlg.h"
 #include "wx/utils.h"
 #include "wx/intl.h"
@@ -88,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);
         }