mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
Track menu: opening track menu by pressing shift+M causes crash
Fix: Call TrackPanel::OnTrackMenu(Track *t) with a track pointer. Query: Is there any reason why this function's parameter has a default value of NULL?
This commit is contained in:
parent
8e2453f0b7
commit
af74ff626e
@ -1145,8 +1145,9 @@ void OnTrackMenu(const CommandContext &context)
|
|||||||
{
|
{
|
||||||
auto &project = context.project;
|
auto &project = context.project;
|
||||||
auto &trackPanel = TrackPanel::Get( project );
|
auto &trackPanel = TrackPanel::Get( project );
|
||||||
|
auto track = trackPanel.GetFocusedTrack();
|
||||||
trackPanel.OnTrackMenu();
|
if (track)
|
||||||
|
trackPanel.OnTrackMenu(track);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnTrackMute(const CommandContext &context)
|
void OnTrackMute(const CommandContext &context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user