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

Bug 2044 - Mac: no context menu when right clicking in label after copying label text to another app

This commit is contained in:
James Crook 2018-12-03 16:15:06 +00:00
parent 253aca7eec
commit bd2547828e

View File

@ -2159,6 +2159,10 @@ void LabelTrack::ShowContextMenu()
{
wxWindow *parent = wxWindow::FindFocus();
// Bug 2044. parent can be nullptr after a context switch.
if( !parent )
parent = GetActiveProject();
if( parent )
{
wxMenu menu;