1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 07:40:23 +02:00

When creating a label by typing, create in the focused track, not the first selected label track.

This commit is contained in:
BusinessmanProgrammerSteve 2010-05-04 19:59:47 +00:00
parent 8ab0148f5d
commit 787d033f4c

View File

@ -1630,8 +1630,11 @@ bool LabelTrack::CaptureKey(wxKeyEvent & event)
if( GetLabelIndex( pProj->mViewInfo.sel0, pProj->mViewInfo.sel1) != wxNOT_FOUND )
return false;
if( pProj )
pProj->OnAddLabel();
// Add a label
SetSelected(true);
AddLabel(pProj->mViewInfo.sel0, pProj->mViewInfo.sel1);
pProj->PushState(_("Added label"), _("Label"));
return true;
}
}