Make sure all menus get Resolve() called for GTK.

Fixes: lp:1833274
* https://bugs.launchpad.net/kicad/+bug/1833274
This commit is contained in:
Jeff Young 2019-06-18 19:45:56 +01:00
parent dcbd897a95
commit 0f0323da5a
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,8 @@ void EDA_3D_VIEWER::CreateMenuBar()
// Don't use ACTIONS::quit; wxWidgets moves this on OSX and expects to find it via wxID_EXIT
fileMenu->AddItem( wxID_EXIT, _( "Quit" ), "", exit_xpm, SELECTION_CONDITIONS::ShowAlways );
fileMenu->Resolve();
//-- Edit menu -------------------------------------------------------
//
CONDITIONAL_MENU* editMenu = new CONDITIONAL_MENU( false, tool );
@ -66,6 +68,8 @@ void EDA_3D_VIEWER::CreateMenuBar()
editMenu->AddItem( ID_TOOL_SCREENCOPY_TOCLIBBOARD, _( "Copy 3D Image" ), "",
copy_xpm, SELECTION_CONDITIONS::ShowAlways );
editMenu->Resolve();
//-- View menu -------------------------------------------------------
//
CONDITIONAL_MENU* viewMenu = new CONDITIONAL_MENU( false, tool );