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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user