void wxFileDialog::GetPaths( wxArrayString& paths ) const
{
paths.Empty();
+ if (m_list->GetSelectedItemCount() == 0)
+ {
+ paths.Add( GetPath() );
+ return;
+ }
+
paths.Alloc( m_list->GetSelectedItemCount() );
wxString dir;
void wxFileDialog::GetFilenames(wxArrayString& files) const
{
files.Empty();
+ if (m_list->GetSelectedItemCount() == 0)
+ {
+ files.Add( GetFilename() );
+ return;
+ }
files.Alloc( m_list->GetSelectedItemCount() );
wxListItem item;