]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
fixed false alert in wxRegKey::DeleteSelf
[wxWidgets.git] / src / generic / filedlgg.cpp
index 24ed3ae470ae35f682e39c649401db9f5dbd920d..e58ccf72195c252500a197df4ea243d4f8695401 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 ( style & wxCHANGE_DIR )
+    if ( GetWindowStyle() & wxCHANGE_DIR )
     {
         wxString cwd;
         wxSplitPath(filename, &cwd, NULL, NULL);