1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Make changes to Change Tempo dialog during preview work as intended...

... See commits b22f6b59d22d8a5b93fc775ac25d85d391f6d459 and
19fa6d2833273d8997a3c9609d8a6ee312bd092b
This commit is contained in:
Paul Licameli 2020-03-26 11:13:43 -04:00
parent 85c34132f4
commit 9f076b5179

View File

@ -2345,6 +2345,10 @@ void Effect::Preview(bool dryOnly)
End();
GuardedCall( [&]{ Init(); } );
}
// In case any dialog control depends on mT1 or mDuration:
if ( mUIDialog )
mUIDialog->TransferDataToWindow();
} );
auto vr0 = valueRestorer( mT0 );
@ -2353,6 +2357,11 @@ void Effect::Preview(bool dryOnly)
if (!mPreviewFullSelection)
mT1 = t1;
// In case any dialog control depends on mT1 or mDuration:
if ( mUIDialog ) {
mUIDialog->TransferDataToWindow();
}
// Save the original track list
TrackList *saveTracks = mTracks;