mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 00:21:16 +02:00
Fix TimerRecord overenthusiastic undo.
Thanks to Pual Licameli for finding the bug and its cause. A cancelled TimerRecord would undo the previous action rather than just roll back.
This commit is contained in:
parent
fa4f3c6bb6
commit
6d086dcc23
@ -6570,10 +6570,7 @@ void AudacityProject::OnTimerRecord()
|
||||
switch (iTimerRecordingOutcome) {
|
||||
case POST_TIMER_RECORD_CANCEL_WAIT:
|
||||
// Canceled on the wait dialog
|
||||
if (GetUndoManager()->UndoAvailable()) {
|
||||
// MY: We need to roll back what changes we have made here
|
||||
OnUndo();
|
||||
}
|
||||
RollbackState();
|
||||
break;
|
||||
case POST_TIMER_RECORD_CANCEL:
|
||||
// RunWaitDialog() shows the "wait for start" as well as "recording" dialog
|
||||
|
Loading…
x
Reference in New Issue
Block a user