1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 14:17:41 +02:00

CommandTargets.cpp has fewer dependencies...

... freeing two files from dependency cycles
This commit is contained in:
Paul Licameli 2019-05-12 06:45:39 -04:00
parent 87a9f34c22
commit 1c0453106d

View File

@ -24,9 +24,10 @@ capture the more lengthy output from some commands.
#include "../Audacity.h" #include "../Audacity.h"
#include "CommandTargets.h" #include "CommandTargets.h"
#include <wx/app.h>
#include <wx/statusbr.h>
#include <wx/string.h> #include <wx/string.h>
#include "../ShuttleGui.h" #include "../ShuttleGui.h"
#include "../Project.h"
#include "../widgets/ErrorDialog.h" #include "../widgets/ErrorDialog.h"
void CommandMessageTarget::StartArray() void CommandMessageTarget::StartArray()
@ -375,7 +376,8 @@ void LongMessageDialog::OnCancel(wxCommandEvent & WXUNUSED(evt)){
void LongMessageDialog::AcceptText( const wxString & Text ) void LongMessageDialog::AcceptText( const wxString & Text )
{ {
if( pDlg == NULL ){ if( pDlg == NULL ){
pDlg = new LongMessageDialog( GetActiveProject(), _( "Long Message" ) ); pDlg = new LongMessageDialog(
wxTheApp->GetTopWindow(), _( "Long Message" ) );
pDlg->Init(); pDlg->Init();
pDlg->Show(); pDlg->Show();
} }