mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 22:27:43 +02:00
Preserve selection on exit from Nyquist prompt.
This is required, because AUD-DO could change the selection.
This commit is contained in:
parent
37018181a1
commit
ecd09a19de
@ -933,7 +933,17 @@ finish:
|
||||
ReplaceProcessedTracks(success);
|
||||
else{
|
||||
ReplaceProcessedTracks(false); // Do not use the results.
|
||||
mT1 = mT0 - 1.0;// And don't use the times either, in resetting the selection (make them bogus).
|
||||
// Selection is to be set to whatever it is in the project.
|
||||
AudacityProject *project = GetActiveProject();
|
||||
if (project) {
|
||||
mT0 = project->GetSel0();
|
||||
mT1 = project->GetSel1();
|
||||
}
|
||||
else {
|
||||
mT0 = 0;
|
||||
mT1 = -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!mProjectChanged)
|
||||
@ -961,8 +971,10 @@ bool NyquistEffect::ShowInterface(wxWindow *parent, bool forceModal)
|
||||
|
||||
effect.SetCommand(mInputCmd);
|
||||
effect.mDebug = (mUIResultID == eDebugID);
|
||||
|
||||
return Delegate(effect, parent, true);
|
||||
bool result = Delegate(effect, parent, true);
|
||||
mT0 = effect.mT0;
|
||||
mT1 = effect.mT1;
|
||||
return result;
|
||||
}
|
||||
|
||||
void NyquistEffect::PopulateOrExchange(ShuttleGui & S)
|
||||
|
Loading…
x
Reference in New Issue
Block a user