don't sort filenames returned from the dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2eb10e2a17
commit
c39e82f097
@ -303,10 +303,11 @@ int wxFileDialog::ShowModal()
|
|||||||
|
|
||||||
if ( ( m_dialogStyle & wxMULTIPLE ) &&
|
if ( ( m_dialogStyle & wxMULTIPLE ) &&
|
||||||
#if defined(OFN_EXPLORER)
|
#if defined(OFN_EXPLORER)
|
||||||
( fileNameBuffer[of.nFileOffset-1] == wxT('\0') ) )
|
( fileNameBuffer[of.nFileOffset-1] == wxT('\0') )
|
||||||
#else
|
#else
|
||||||
( fileNameBuffer[of.nFileOffset-1] == wxT(' ') ) )
|
( fileNameBuffer[of.nFileOffset-1] == wxT(' ') )
|
||||||
#endif // OFN_EXPLORER
|
#endif // OFN_EXPLORER
|
||||||
|
)
|
||||||
{
|
{
|
||||||
#if defined(OFN_EXPLORER)
|
#if defined(OFN_EXPLORER)
|
||||||
m_dir = fileNameBuffer;
|
m_dir = fileNameBuffer;
|
||||||
@ -334,7 +335,6 @@ int wxFileDialog::ShowModal()
|
|||||||
if ( m_dir.Last() != _T('\\') )
|
if ( m_dir.Last() != _T('\\') )
|
||||||
dir += _T('\\');
|
dir += _T('\\');
|
||||||
|
|
||||||
m_fileNames.Sort(wxStringSortAscending);
|
|
||||||
m_path = dir + m_fileName;
|
m_path = dir + m_fileName;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user