X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec52467188b876c4f21f2528d99730827a27b76e..3e822cd8d0bdf04cd2c7a3dddff61dcc211f7439:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 4c4be29a2b..fc92b7327a 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -1,5 +1,5 @@ ////////////////////////////////////////////////////////////////////////////// -// Name: filedlgg.cpp +// Name: src/generic/filedlgg.cpp // Purpose: wxGenericFileDialog // Author: Robert Roebling // Modified by: @@ -829,10 +829,6 @@ void wxFileCtrl::SortItems(wxFileData::fileListFieldType field, bool forward) switch (m_sort_field) { - case wxFileData::FileList_Name : - wxListCtrl::SortItems(wxFileDataNameCompare, sort_dir); - break; - case wxFileData::FileList_Size : wxListCtrl::SortItems(wxFileDataSizeCompare, sort_dir); break; @@ -844,6 +840,11 @@ void wxFileCtrl::SortItems(wxFileData::fileListFieldType field, bool forward) case wxFileData::FileList_Time : wxListCtrl::SortItems(wxFileDataTimeCompare, sort_dir); break; + + case wxFileData::FileList_Name : + default : + wxListCtrl::SortItems(wxFileDataNameCompare, sort_dir); + break; } } @@ -1485,9 +1486,8 @@ void wxGenericFileDialog::UpdateControls() #ifdef USE_GENERIC_FILEDIALOG -IMPLEMENT_DYNAMIC_CLASS(wxFileDialog, wxGenericFileDialog); +IMPLEMENT_DYNAMIC_CLASS(wxFileDialog, wxGenericFileDialog) #endif // USE_GENERIC_FILEDIALOG #endif // wxUSE_FILEDLG -