From: Vadim Zeitlin Date: Thu, 24 Mar 2005 02:49:20 +0000 (+0000) Subject: file dialog with wxMULTIPLE style still doesn't allow to select multiple files but... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0832aaafb8de813f1854c3895752a90ecd399e43?ds=inline file dialog with wxMULTIPLE style still doesn't allow to select multiple files but at least it does return the single file which it does allow to select now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); } diff --git a/src/gtk1/filedlg.cpp b/src/gtk1/filedlg.cpp index 3c909e79bf..1240658ca2 100644 --- a/src/gtk1/filedlg.cpp +++ b/src/gtk1/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); }