Allow menu to close before putting up dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/8055
This commit is contained in:
Jeff Young 2021-03-28 13:03:36 +01:00
parent 475ac3697f
commit 673baa0864
1 changed files with 6 additions and 3 deletions

View File

@ -303,9 +303,12 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
// Re-check the current grid. // Re-check the current grid.
wxUpdateUIEvent dummy; wxUpdateUIEvent dummy;
OnUpdateSelectGrid( dummy ); OnUpdateSelectGrid( dummy );
// Now run the Grid Settings... dialog
wxCommandEvent dummy2; // Give a time-slice to close the menu before opening the dialog.
OnGridSettings( dummy2 ); // (Only matters on some versions of GTK.)
wxSafeYield();
m_toolManager->RunAction( ACTIONS::gridProperties, true );
} }
else else
{ {