mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Smuggle AudacityProject into LabelTrackView::GetSelectedIndex() ...
... and eliminate some more calls to GetActiveProject
This commit is contained in:
@@ -112,7 +112,7 @@ bool SetLabelCommand::Apply(const CommandContext & context)
|
||||
double t1 = pLabel->selectedRegion.t1();
|
||||
selectedRegion.setTimes( t0, t1);
|
||||
}
|
||||
else if( view.GetSelectedIndex() == ii )
|
||||
else if( view.GetSelectedIndex( context.project ) == ii )
|
||||
view.SetSelectedIndex( -1 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user