]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in wxFileDialog: it tested wxCHANGE_DIR against GetWindowStyle() instead...
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 24 Nov 2000 17:19:29 +0000 (17:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 24 Nov 2000 17:19:29 +0000 (17:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index e58ccf72195c252500a197df4ea243d4f8695401..41e6ad08d02908cebf6ce468e256952cfdf66ca7 100644 (file)
@@ -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);