X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01b92baa9c59457765e7a5ed1df74f45d4bcd80b..894d74dcc233b7f9a936767558f3e061593dd062:/src/gtk/filedlg.cpp?ds=sidebyside diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index 3c909e79bf..1240658ca2 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -299,7 +299,8 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const if (gpaths) g_slist_free(gpaths); } - else + + if ( paths.IsEmpty() ) { paths.Add(m_fileName); }