Allow menu to close before putting up dialog.
Fixes https://gitlab.com/kicad/code/kicad/issues/8055
This commit is contained in:
parent
475ac3697f
commit
673baa0864
|
@ -303,9 +303,12 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
|
|||
// Re-check the current grid.
|
||||
wxUpdateUIEvent dummy;
|
||||
OnUpdateSelectGrid( dummy );
|
||||
// Now run the Grid Settings... dialog
|
||||
wxCommandEvent dummy2;
|
||||
OnGridSettings( dummy2 );
|
||||
|
||||
// Give a time-slice to close the menu before opening the dialog.
|
||||
// (Only matters on some versions of GTK.)
|
||||
wxSafeYield();
|
||||
|
||||
m_toolManager->RunAction( ACTIONS::gridProperties, true );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue