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
This commit is contained in:
Vadim Zeitlin
2005-03-24 02:49:20 +00:00
parent 01b92baa9c
commit 0832aaafb8
2 changed files with 4 additions and 2 deletions

View File

@@ -299,7 +299,8 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const
if (gpaths) if (gpaths)
g_slist_free(gpaths); g_slist_free(gpaths);
} }
else
if ( paths.IsEmpty() )
{ {
paths.Add(m_fileName); paths.Add(m_fileName);
} }

View File

@@ -299,7 +299,8 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const
if (gpaths) if (gpaths)
g_slist_free(gpaths); g_slist_free(gpaths);
} }
else
if ( paths.IsEmpty() )
{ {
paths.Add(m_fileName); paths.Add(m_fileName);
} }