1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-16 16:20:50 +02:00

Send an initial filter changed event under OSX

This commit is contained in:
Leland Lucius 2015-07-29 02:07:37 -05:00
parent 573365765a
commit 709c9e9153

View File

@ -626,7 +626,7 @@ int FileDialog::ShowModal()
types are foo and bar, a filename "myletter" with SetDialogIndex(1) types are foo and bar, a filename "myletter" with SetDialogIndex(1)
would result in saving as myletter.foo, while we want myletter.bar. would result in saving as myletter.foo, while we want myletter.bar.
*/ */
if(m_firstFileTypeFilter > 0) // if(m_firstFileTypeFilter > 0)
{ {
DoOnFilterSelected(m_firstFileTypeFilter); DoOnFilterSelected(m_firstFileTypeFilter);
} }
@ -651,6 +651,11 @@ int FileDialog::ShowModal()
if ( !m_dir.IsEmpty() ) if ( !m_dir.IsEmpty() )
[oPanel setDirectoryURL:[NSURL fileURLWithPath:dir.AsNSString() [oPanel setDirectoryURL:[NSURL fileURLWithPath:dir.AsNSString()
isDirectory:YES]]; isDirectory:YES]];
{
DoOnFilterSelected(m_firstFileTypeFilter);
}
returnCode = [oPanel runModal]; returnCode = [oPanel runModal];
ModalFinishedCallback(oPanel, returnCode); ModalFinishedCallback(oPanel, returnCode);