mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-18 06:31:20 +01: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:
@@ -468,7 +468,15 @@ void ExportFFmpegCustomOptions::OnOpen(wxCommandEvent & WXUNUSED(evt))
|
||||
}
|
||||
}
|
||||
DropFFmpegLibs();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// Bug 2077 Must be a parent window on OSX or we will appear behind.
|
||||
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);
|
||||
od.ShowModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user