In fallback selection, handle cancelled menu
doSelectionMenu returns false to indicate a cancelled menu. This needs to be handled in selectPoint when directly accessing doSelectionMenu in the same manner as SelectionMenu() events Fixes https://gitlab.com/kicad/code/kicad/issues/9218
This commit is contained in:
parent
0cf81b6d4e
commit
671aec5da6
|
@ -858,7 +858,10 @@ bool EE_SELECTION_TOOL::selectPoint( EE_COLLECTOR& aCollector, EDA_ITEM** aItem,
|
|||
// But it we cannot handle the event, then we don't have an active tool loop, so
|
||||
// handle it directly.
|
||||
if( !m_toolMgr->RunAction( EE_ACTIONS::selectionMenu, true, &aCollector ) )
|
||||
doSelectionMenu( &aCollector );
|
||||
{
|
||||
if( !doSelectionMenu( &aCollector ) )
|
||||
aCollector.m_MenuCancelled = true;
|
||||
}
|
||||
|
||||
if( aCollector.m_MenuCancelled )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue