void wxFileCtrl::GoToDir( const wxString &dir )
{
- if (!wxDirExists(dir)) return;
+ if (!wxPathExists(dir)) return;
m_dirName = dir;
UpdateFiles();
{
m_bypassGenericImpl = bypassGenericImpl;
- if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFile,
+ if (!wxFileDialogBase::Create(parent, message, defaultDir, defaultFile,
wildCard, style, pos))
{
return false;
wildFilters);
wxCHECK_RET( count, wxT("wxFileDialog: bad wildcard string") );
- size_t n, old_count = m_choice->GetCount();
- for ( n = 0; n < count; n++ )
+ const size_t countOld = m_choice->GetCount();
+ size_t n;
+ for ( n = 0; n < countOld; n++ )
{
delete (wxString *)m_choice->GetClientData(n);
}
-
+
for ( n = 0; n < count; n++ )
{
m_choice->Append( wildDescriptions[n], new wxString( wildFilters[n] ) );
if (!IsTopMostDir(dir))
dir += wxFILE_SEP_PATH;
dir += filename;
- if (wxDirExists(dir)) return;
+ if (wxPathExists(dir)) return;
ignoreChanges = true;
m_text->SetValue( filename );
filename = dir;
}
- if (wxDirExists(filename))
+ if (wxPathExists(filename))
{
m_list->GoToDir( filename );
UpdateControls();