Don't put standard menu items into symbol tree context menu.

This commit is contained in:
Jeff Young 2019-06-05 23:32:03 +01:00
parent 469fc3b572
commit b9927a0655
1 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,9 @@ TOOL_ACTION EE_ACTIONS::showComponentTree( "eeschema.SymbolLibraryControl.showCo
bool LIB_CONTROL::Init()
{
EE_TOOL_BASE::Init();
m_frame = getEditFrame<SCH_BASE_FRAME>();
m_selectionTool = m_toolMgr->GetTool<EE_SELECTION_TOOL>();
m_isLibEdit = m_frame->IsType( FRAME_SCH_LIB_EDITOR );
if( m_isLibEdit )
{