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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user