1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Update mixer board for name change of MIDI track...

... as well as for WaveTrack, if EXPERIMENTAL_MIDI_OUT
This commit is contained in:
Paul Licameli 2017-06-02 18:35:29 -04:00
parent 721faf89c6
commit beab669f42

View File

@ -8813,8 +8813,9 @@ void TrackPanel::OnSetName(wxCommandEvent & WXUNUSED(event))
t->GetLink()->SetName(newName); t->GetLink()->SetName(newName);
MixerBoard* pMixerBoard = this->GetMixerBoard(); MixerBoard* pMixerBoard = this->GetMixerBoard();
if (pMixerBoard && (t->GetKind() == Track::Wave)) auto pt = dynamic_cast<PlayableTrack*>(t);
pMixerBoard->UpdateName((WaveTrack*)t); if (pMixerBoard && pt)
pMixerBoard->UpdateName(pt);
MakeParentPushState(wxString::Format(_("Renamed '%s' to '%s'"), MakeParentPushState(wxString::Format(_("Renamed '%s' to '%s'"),
oldName.c_str(), oldName.c_str(),