Fix menu first radio button state and synchronise state changes.

This commit is contained in:
Richard Smith
2018-11-21 16:02:33 +00:00
parent 6b7b43d1fe
commit bfad2a5425
2 changed files with 3 additions and 1 deletions

View File

@@ -165,5 +165,6 @@ void wxQtAction::onActionTriggered( bool checked )
{
wxMenuItem *handler = GetHandler();
wxMenu *menu = handler->GetMenu();
if(handler->IsCheckable()) handler->Check(checked);
menu->SendEvent( handler->GetId(), handler->IsCheckable() ? checked : -1 );
}