Backported filter fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-06-22 12:12:10 +00:00
parent a8aeb8d9d2
commit 3cfd8e8730

View File

@@ -1192,6 +1192,11 @@ void wxGenericDirCtrl::SetFilter(const wxString& filter)
#else
m_currentFilterStr = wxT("*.*");
#endif
// current filter index is meaningless after filter change, set it to zero
SetFilterIndex(0);
if (m_filterListCtrl)
m_filterListCtrl->FillFilterList(m_filter, 0);
}
// Extract description and actual filter from overall filter string