From 1c0453106dff1dec008e656829576bef1d5eef02 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 12 May 2019 06:45:39 -0400 Subject: [PATCH] CommandTargets.cpp has fewer dependencies... ... freeing two files from dependency cycles --- src/commands/CommandTargets.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/CommandTargets.cpp b/src/commands/CommandTargets.cpp index d38158a9d..6668002a3 100644 --- a/src/commands/CommandTargets.cpp +++ b/src/commands/CommandTargets.cpp @@ -24,9 +24,10 @@ capture the more lengthy output from some commands. #include "../Audacity.h" #include "CommandTargets.h" +#include +#include #include #include "../ShuttleGui.h" -#include "../Project.h" #include "../widgets/ErrorDialog.h" void CommandMessageTarget::StartArray() @@ -375,7 +376,8 @@ void LongMessageDialog::OnCancel(wxCommandEvent & WXUNUSED(evt)){ void LongMessageDialog::AcceptText( const wxString & Text ) { if( pDlg == NULL ){ - pDlg = new LongMessageDialog( GetActiveProject(), _( "Long Message" ) ); + pDlg = new LongMessageDialog( + wxTheApp->GetTopWindow(), _( "Long Message" ) ); pDlg->Init(); pDlg->Show(); }