Attempt to fix un-resolved sub-menus.
While I'm pretty sure this will work, the issues don't appear on OSX so I can't be positive. Fixes: lp:1832049 * https://bugs.launchpad.net/kicad/+bug/1832049
This commit is contained in:
parent
a91934c7b3
commit
b9e07f2a70
|
@ -103,6 +103,13 @@ SELECTION g_resolveDummySelection;
|
|||
void CONDITIONAL_MENU::Resolve()
|
||||
{
|
||||
Evaluate( g_resolveDummySelection );
|
||||
|
||||
runOnSubmenus( [] ( ACTION_MENU* aMenu ) {
|
||||
CONDITIONAL_MENU* conditionalMenu = dynamic_cast<CONDITIONAL_MENU*>( aMenu );
|
||||
|
||||
if( conditionalMenu )
|
||||
conditionalMenu->Resolve();
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue