1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

LabelTrackView, not LabelTrack, handles focus changes when adding

This commit is contained in:
Paul Licameli
2018-12-05 16:16:31 -05:00
parent 8ff5a4b345
commit aa5f9550bd
9 changed files with 56 additions and 35 deletions

View File

@@ -420,7 +420,7 @@ bool LabelDialog::TransferDataFromWindow()
return false;
// Add the label to it
lt->AddLabel(rd.selectedRegion, rd.title, -2);
lt->AddLabel(rd.selectedRegion, rd.title);
lt->Unselect();
}
@@ -723,7 +723,7 @@ void LabelDialog::OnExport(wxCommandEvent & WXUNUSED(event))
for (i = 0; i < cnt; i++) {
RowData &rd = mData[i];
lt->AddLabel(rd.selectedRegion, rd.title,-2);
lt->AddLabel(rd.selectedRegion, rd.title);
}
// Export them and clean