7
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:
JamesJCode 2024-12-26 18:17:43 +00:00
parent 92404b33f0
commit 936e0a590c

View File

@ -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();