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:
Jeff Young 2019-06-11 10:03:22 +01:00
parent a91934c7b3
commit b9e07f2a70
1 changed files with 7 additions and 0 deletions

View File

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