1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

Redo previous commit's fix...

... the bug was introduced at e581fa60d9

I think it is better to make TrackPanel::OnTrackMenu crash-proof when
called with the default argument
This commit is contained in:
Paul Licameli
2019-06-28 10:46:48 -04:00
parent af74ff626e
commit af791d3d0b
2 changed files with 3 additions and 4 deletions

View File

@@ -1145,9 +1145,8 @@ void OnTrackMenu(const CommandContext &context)
{
auto &project = context.project;
auto &trackPanel = TrackPanel::Get( project );
auto track = trackPanel.GetFocusedTrack();
if (track)
trackPanel.OnTrackMenu(track);
trackPanel.OnTrackMenu();
}
void OnTrackMute(const CommandContext &context)