1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 08:40:27 +02:00

Bug 2077 - Residual: Original code was correct for Windows

If new code is used on windows, we get an assert.
This commit is contained in:
James Crook 2019-08-30 19:00:37 +01:00
parent 9e69be9f6f
commit fe3a866117

View File

@ -468,7 +468,15 @@ void ExportFFmpegCustomOptions::OnOpen(wxCommandEvent & WXUNUSED(evt))
} }
} }
DropFFmpegLibs(); DropFFmpegLibs();
#ifdef __WXMAC__
// Bug 2077 Must be a parent window on OSX or we will appear behind.
auto pWin = wxGetTopLevelParent( this ); auto pWin = wxGetTopLevelParent( this );
#else
// Use GetTopWindow on windows as there is no hWnd with top level parent.
auto pWin = wxTheApp->GetTopWindow();
#endif
ExportFFmpegOptions od(pWin); ExportFFmpegOptions od(pWin);
od.ShowModal(); od.ShowModal();
} }