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:
parent
18be09e277
commit
c6a7f7c59f
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user