1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00

OD manager events will be signalled through the Project...

... not the project window, when those are distinct objects.

This will keep the existing calls that bind the events correct.
This commit is contained in:
Paul Licameli 2019-06-01 22:21:37 -04:00
parent 18be09e277
commit c6a7f7c59f
2 changed files with 2 additions and 4 deletions

View File

@ -424,8 +424,7 @@ void ODManager::Start()
ODLocker locker{ &AllProjects::Mutex() };
AudacityProject* proj = GetActiveProject();
if(proj)
GetProjectFrame( *proj )
.GetEventHandler()->AddPendingEvent(event);
proj->wxEvtHandler::AddPendingEvent(event);
}
mTerminateMutex.Lock();
}

View File

@ -159,8 +159,7 @@ void ODTask::DoSome(float amountWork)
if(IsTaskAssociatedWithProject(pProject.get()))
{
//this assumes tasks are only associated with one project.
GetProjectFrame( *pProject )
.GetEventHandler()->AddPendingEvent(event);
pProject->wxEvtHandler::AddPendingEvent(event);
//mark the changes so that the project can be resaved.
UndoManager::Get( *pProject ).SetODChangesFlag();
break;