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
This commit is contained in:
Václav Slavík
2000-11-24 17:19:29 +00:00
parent a1f79c1e00
commit fda09b3f66

View File

@@ -1098,7 +1098,7 @@ void wxFileDialog::HandleAction( const wxString &fn )
SetPath( filename ); SetPath( filename );
// change to the directory where the user went if asked // change to the directory where the user went if asked
if ( GetWindowStyle() & wxCHANGE_DIR ) if ( m_dialogStyle & wxCHANGE_DIR )
{ {
wxString cwd; wxString cwd;
wxSplitPath(filename, &cwd, NULL, NULL); wxSplitPath(filename, &cwd, NULL, NULL);