]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
fix for discrepancies between wxNotebookEvent and wxNotebook GetSelection() results
[wxWidgets.git] / 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);