mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Don't use AudacityApp where you only need wxApp...
... I want to have fewer inclusions of AudacityApp.h. More work on removing them will happen in the next version.
This commit is contained in:
@@ -64,7 +64,6 @@
|
||||
#include "../Tags.h"
|
||||
#include "../TranslatableStringArray.h"
|
||||
#include "../widgets/ErrorDialog.h"
|
||||
#include "../AudacityApp.h"
|
||||
|
||||
#include "Export.h"
|
||||
|
||||
@@ -471,7 +470,7 @@ void ExportFFmpegCustomOptions::OnOpen(wxCommandEvent & WXUNUSED(evt))
|
||||
}
|
||||
}
|
||||
DropFFmpegLibs();
|
||||
auto pWin = wxGetApp().GetTopWindow();
|
||||
auto pWin = wxTheApp->GetTopWindow();
|
||||
ExportFFmpegOptions od(pWin);
|
||||
od.ShowModal();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "sndfile.h"
|
||||
|
||||
#include "../AudacityApp.h" // for error reporting top level window.
|
||||
#include "../FileFormats.h"
|
||||
#include "../Internat.h"
|
||||
#include "../MemoryX.h"
|
||||
@@ -520,7 +519,7 @@ ProgressResult ExportPCM::Export(AudacityProject *project,
|
||||
// Test for 4 Gibibytes, rather than 4 Gigabytes
|
||||
if( byteCount > 4.295e9)
|
||||
{
|
||||
ReportTooBigError( wxGetApp().GetTopWindow() );
|
||||
ReportTooBigError( wxTheApp->GetTopWindow() );
|
||||
return ProgressResult::Failed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user