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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user