Re-work TimeFX cancel/abort

When processing multiple regions, apply results at the end, so that
when the action is canceled, no changes are applied.
Furthermore, do not commit an undo-command if time-stretch is a no-op.
This commit is contained in:
Robin Gareus 2019-02-26 03:01:53 +01:00
parent 1776939dd3
commit c36dfbedb7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 62 additions and 33 deletions

View file

@ -246,7 +246,6 @@ TimeFXDialog::timer_update ()
void
TimeFXDialog::cancel_in_progress ()
{
status = -2;
request.cancel = true;
first_cancel.disconnect();
}
@ -254,7 +253,6 @@ TimeFXDialog::cancel_in_progress ()
gint
TimeFXDialog::delete_in_progress (GdkEventAny*)
{
status = -2;
request.cancel = true;
first_delete.disconnect();
return TRUE;