mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-16 08:10:25 +02:00
Send an initial filter changed event under OSX
This commit is contained in:
parent
573365765a
commit
709c9e9153
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user