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

Bug 1859 - Macros on files - Save Project causes overwrites. thus loses data

AudacityProject::Save() is now batch mode sensitive, and if in batch mode (and not overwriting) will save without prompting.
The loop for applying macros to multiple files now also clears down the project, using the new function ResetProjectToEmpty().
This commit is contained in:
James Crook
2018-08-04 21:51:23 +01:00
parent d3e6e92440
commit 9357c90b43
4 changed files with 66 additions and 24 deletions

View File

@@ -198,6 +198,8 @@ void UndoManager::RemoveStates(int num)
void UndoManager::ClearStates()
{
RemoveStates(stack.size());
current = -1;
saved = -1;
}
unsigned int UndoManager::GetNumStates()