X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f6638b82b01d7691b321dbcfb08765d559e4c59..09e48f0b1917db7e455f28c2c9ed661d39e9ab65:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 24ed3ae470..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 ( style & 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