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:
parent
253aca7eec
commit
bd2547828e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user