1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

Fix bug 680

"Project was recovered" replaces "Create new project" in Undo History.
This commit is contained in:
Steve Daulton
2019-07-19 12:27:14 +01:00
parent 93bb862aa2
commit 75fdadf674
2 changed files with 5 additions and 2 deletions

View File

@@ -898,6 +898,9 @@ AudacityProject *ProjectManager::OpenProject(
if( projectFileIO.IsRecovered() ) {
auto &window = ProjectWindow::Get( *pProject );
window.Zoom( window.GetZoomOfToFit() );
// "Project was recovered" replaces "Create new project" in Undo History.
auto &undoManager = UndoManager::Get( *pProject );
undoManager.RemoveStates(1);
}
return pProject;