X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f368ba4b289c4cda64ea3d52c1ac905627fc8578..55d607461b4ccb18a45f9c116e2134096ee70c3b:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index e58ccf7219..2d418f1064 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#if wxUSE_FILEDLG + #ifndef __UNIX__ #error wxFileDialog currently only supports unix #endif @@ -1098,7 +1100,7 @@ void wxFileDialog::HandleAction( const wxString &fn ) SetPath( filename ); // change to the directory where the user went if asked - if ( GetWindowStyle() & wxCHANGE_DIR ) + if ( m_dialogStyle & wxCHANGE_DIR ) { wxString cwd; wxSplitPath(filename, &cwd, NULL, NULL); @@ -1320,3 +1322,5 @@ public: }; IMPLEMENT_DYNAMIC_CLASS(wxFileDialogGenericModule, wxModule) + +#endif // wxUSE_FILEDLG