1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

static UndoManager::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-01-21 17:45:03 -05:00
parent b5a57682b6
commit 72b7c776a8
12 changed files with 69 additions and 39 deletions

View File

@@ -135,7 +135,7 @@ void ODTask::DoSome(float amountWork)
if(IsTaskAssociatedWithProject(gAudacityProjects[i].get()))
{
//mark the changes so that the project can be resaved.
gAudacityProjects[i]->GetUndoManager()->SetODChangesFlag();
UndoManager::Get( *gAudacityProjects[i] ).SetODChangesFlag();
break;
}
}
@@ -161,7 +161,7 @@ void ODTask::DoSome(float amountWork)
//this assumes tasks are only associated with one project.
gAudacityProjects[i]->GetEventHandler()->AddPendingEvent(event);
//mark the changes so that the project can be resaved.
gAudacityProjects[i]->GetUndoManager()->SetODChangesFlag();
UndoManager::Get( *gAudacityProjects[i] ).SetODChangesFlag();
break;
}
}