mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-10 06:37:06 +01:00
Bug 2044 - Mac: no context menu when right clicking in label after copying label text to another app
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user