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:
Robert Roebling
2005-05-21 09:53:53 +00:00
parent 3fa5153e98
commit 854aa1e15d

View File

@@ -1267,16 +1267,19 @@ void wxGenericFileDialog::HandleAction( const wxString &fn )
} }
#endif // __UNIX__ #endif // __UNIX__
if ((filename.Find(wxT('*')) != wxNOT_FOUND) || if (!(m_dialogStyle & wxSAVE))
(filename.Find(wxT('?')) != wxNOT_FOUND))
{ {
if (filename.Find(wxFILE_SEP_PATH) != wxNOT_FOUND) if ((filename.Find(wxT('*')) != wxNOT_FOUND) ||
(filename.Find(wxT('?')) != wxNOT_FOUND))
{ {
wxMessageBox(_("Illegal file specification."), _("Error"), wxOK | wxICON_ERROR ); if (filename.Find(wxFILE_SEP_PATH) != wxNOT_FOUND)
{
wxMessageBox(_("Illegal file specification."), _("Error"), wxOK | wxICON_ERROR );
return;
}
m_list->SetWild( filename );
return; return;
} }
m_list->SetWild( filename );
return;
} }
if (!IsTopMostDir(dir)) if (!IsTopMostDir(dir))