1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +02:00

Fix ASSERT opening FFmpeg Options Dialog.

Was caused by passing a non hWnd window to the ExportOptions constructor.
This commit is contained in:
James Crook 2018-08-29 13:25:18 +01:00
parent 6656506529
commit 481370b7b3

View File

@ -62,6 +62,7 @@
#include "../Tags.h"
#include "../TranslatableStringArray.h"
#include "../widgets/ErrorDialog.h"
#include "../AudacityApp.h"
#include "Export.h"
@ -468,8 +469,8 @@ void ExportFFmpegCustomOptions::OnOpen(wxCommandEvent & WXUNUSED(evt))
}
}
DropFFmpegLibs();
ExportFFmpegOptions od(wxGetTopLevelParent(this));
auto pWin = wxGetApp().GetTopWindow();
ExportFFmpegOptions od(pWin);
od.ShowModal();
}