From: Václav Slavík Date: Fri, 24 Nov 2000 17:19:29 +0000 (+0000) Subject: fixed bug in wxFileDialog: it tested wxCHANGE_DIR against GetWindowStyle() instead... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fda09b3f66903798c8eb0d56be96708ea0367b6b fixed bug in wxFileDialog: it tested wxCHANGE_DIR against GetWindowStyle() instead of m_dialogStyle git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index e58ccf7219..41e6ad08d0 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -1098,7 +1098,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);