1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

AUP3: Don't molest project file when applying macros

Cliff reported that if you apply a macro to "Files" and you had
a "saved project" open at the time, you would get the "not saved
properly" dialog when you next open that "saved project".

This should correct it...
This commit is contained in:
Leland Lucius
2020-08-26 00:06:19 -05:00
parent bbd893c891
commit 0bbf1792fa
6 changed files with 10 additions and 40 deletions

View File

@@ -920,11 +920,12 @@ void ProjectManager::ResetProjectToEmpty() {
WaveTrackFactory::Reset( project );
projectFileManager.Reset();
projectHistory.SetDirty( false );
auto &undoManager = UndoManager::Get( project );
undoManager.ClearStates();
projectFileManager.CloseProject();
projectFileManager.OpenProject();
}
void ProjectManager::RestartTimer()