Some doc updates.
Corrected wxFileDialog::GetFilenames() and GetPaths() if no file is selected. Corrceted make install. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -901,6 +901,12 @@ void wxFileDialog::SetPath( const wxString& path )
|
||||
void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
||||
{
|
||||
paths.Empty();
|
||||
if (m_list->GetSelectedItemCount() == 0)
|
||||
{
|
||||
paths.Add( GetPath() );
|
||||
return;
|
||||
}
|
||||
|
||||
paths.Alloc( m_list->GetSelectedItemCount() );
|
||||
|
||||
wxString dir;
|
||||
@@ -922,6 +928,11 @@ void wxFileDialog::GetPaths( wxArrayString& paths ) const
|
||||
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
||||
{
|
||||
files.Empty();
|
||||
if (m_list->GetSelectedItemCount() == 0)
|
||||
{
|
||||
files.Add( GetFilename() );
|
||||
return;
|
||||
}
|
||||
files.Alloc( m_list->GetSelectedItemCount() );
|
||||
|
||||
wxListItem item;
|
||||
|
Reference in New Issue
Block a user