src/tracks/labeltrack/ui/LabelTrackView.cpp
// restoreFocus of -1 is the default, and sets the focus to this label.
// restoreFocus of -2 or other value leaves the focus unchanged.
// restoreFocus >= 0 will later cause focus to move to that track.
restoreFocus of -1 is the default, and sets the focus to this label.
restoreFocus of -2 or other value leaves the focus unchanged.
restoreFocus >= 0 will later cause focus to move to that track.
restoreFocus of - 1 is the default and sets the focus to this label . restoreFocus of - 2 or other value leaves the focus unchanged . restoreFocus > = 0 will later cause focus to move to that track .
int LabelTrackView::AddLabel(const SelectedRegion &selectedRegion,
                         const wxString &title, int restoreFocus)
{
   const auto pTrack = FindLabelTrack();
   mRestoreFocus = restoreFocus;
   auto pos = pTrack->AddLabel( selectedRegion, title );
   return pos;
}
int LabelTrackView :: AddLabel ( const SelectedRegion & selectedRegion , const wxString & title , int restoreFocus ) { const auto pTrack = FindLabelTrack ( ) ; mRestoreFocus = restoreFocus ; auto pos = pTrack -> AddLabel ( selectedRegion , title ) ; return pos ; }
restoreFocus of -1 is the default, and sets the focus to this label.
restoreFocus of - 1 is the default and sets the focus to this label .