Don't check for wildcards if wxSAVE is given.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1267,6 +1267,8 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
|
|||||||
}
|
}
|
||||||
#endif // __UNIX__
|
#endif // __UNIX__
|
||||||
|
|
||||||
|
if (!(m_dialogStyle & wxSAVE))
|
||||||
|
{
|
||||||
if ((filename.Find(wxT('*')) != wxNOT_FOUND) ||
|
if ((filename.Find(wxT('*')) != wxNOT_FOUND) ||
|
||||||
(filename.Find(wxT('?')) != wxNOT_FOUND))
|
(filename.Find(wxT('?')) != wxNOT_FOUND))
|
||||||
{
|
{
|
||||||
@@ -1278,6 +1280,7 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
|
|||||||
m_list->SetWild( filename );
|
m_list->SetWild( filename );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!IsTopMostDir(dir))
|
if (!IsTopMostDir(dir))
|
||||||
dir += wxFILE_SEP_PATH;
|
dir += wxFILE_SEP_PATH;
|
||||||
|
Reference in New Issue
Block a user