mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 22:13:44 +00:00
Don't enable GRID_TRICKS paste menu item if grid is not editable
This commit is contained in:
parent
92404b33f0
commit
936e0a590c
@ -399,7 +399,8 @@ void GRID_TRICKS::showPopupMenu( wxMenu& menu, wxGridEvent& aEvent )
|
||||
if( wxTheClipboard->IsSupported( wxDF_TEXT )
|
||||
|| wxTheClipboard->IsSupported( wxDF_UNICODETEXT ) )
|
||||
{
|
||||
menu.Enable( GRIDTRICKS_ID_PASTE, true );
|
||||
if( m_grid->IsEditable() )
|
||||
menu.Enable( GRIDTRICKS_ID_PASTE, true );
|
||||
}
|
||||
|
||||
wxTheClipboard->Close();
|
||||
|
Loading…
Reference in New Issue
Block a user