Deprecate wxPathExists, make wxDirExists used everywhere, minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -195,7 +195,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
||||
|
||||
if ( style & wxSAVE )
|
||||
{
|
||||
if ( !defaultDir.IsEmpty() )
|
||||
if ( !defaultDir.empty() )
|
||||
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget),
|
||||
wxConvFileName->cWX2MB(defaultDir));
|
||||
|
||||
@@ -204,10 +204,10 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !defaultFileName.IsEmpty() )
|
||||
if ( !defaultFileName.empty() )
|
||||
{
|
||||
wxString dir;
|
||||
if ( defaultDir.IsEmpty() )
|
||||
if ( defaultDir.empty() )
|
||||
dir = ::wxGetCwd();
|
||||
else
|
||||
dir = defaultDir;
|
||||
@@ -216,7 +216,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
||||
GTK_FILE_CHOOSER(m_widget),
|
||||
wxConvFileName->cWX2MB( wxFileName(dir, defaultFileName).GetFullPath() ) );
|
||||
}
|
||||
else if ( !defaultDir.IsEmpty() )
|
||||
else if ( !defaultDir.empty() )
|
||||
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER(m_widget),
|
||||
wxConvFileName->cWX2MB(defaultDir) );
|
||||
}
|
||||
@@ -354,7 +354,7 @@ void wxFileDialog::SetDirectory(const wxString& dir)
|
||||
#ifdef __WXGTK24__
|
||||
if (!gtk_check_version(2,4,0))
|
||||
{
|
||||
if (wxPathExists(dir))
|
||||
if (wxDirExists(dir))
|
||||
{
|
||||
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget), wxConvFileName->cWX2MB(dir));
|
||||
}
|
||||
|
Reference in New Issue
Block a user