X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8bc53eb53d46fb5aba070830100e6994cfc435f..653d7a50e5d9cc02146c5c79a0cbf41e2a1f6cfb:/src/gtk1/filedlg.cpp?ds=sidebyside diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index 71d76a6915..61925cde04 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/filedlg.cpp @@ -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)); }