1
0
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:
Paul Licameli
2019-06-28 13:31:12 -04:00
parent 30715e4fe2
commit f77ddc43d9
9 changed files with 105 additions and 81 deletions

View File

@@ -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 );
}