1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Always show the filter list to be consistent with the other 2 plats.

(This also fixes an array indexing problem.)
This commit is contained in:
Leland Lucius
2015-08-14 16:01:04 -05:00
parent dfcad8a926
commit 1bf561819e

View File

@@ -547,10 +547,9 @@ int FileDialog::ShowModal()
parentWindow = dynamic_cast<wxNonOwnedWindow*>(wxGetTopLevelParent(GetParent())); parentWindow = dynamic_cast<wxNonOwnedWindow*>(wxGetTopLevelParent(GetParent()));
} }
NSArray* types = GetTypesFromFilter( m_wildCard, m_filterNames, m_filterExtensions ) ; NSArray* types = GetTypesFromFilter( m_wildCard, m_filterNames, m_filterExtensions ) ;
m_useFileTypeFilter = m_filterExtensions.GetCount() > 1; m_useFileTypeFilter = m_filterExtensions.GetCount() > 0;
if( HasFlag(wxFD_OPEN) ) if( HasFlag(wxFD_OPEN) )
{ {