Fix toggling of radio tools in wxOSX wxToolBar.

Always call NSButton::setState(), even when using native toolbar.

Closes #16662.
This commit is contained in:
Steve Browne
2015-03-12 13:08:39 +01:00
committed by Vadim Zeitlin
parent b8f6cb417c
commit 96a8240e87

View File

@@ -597,12 +597,10 @@ void wxToolBarTool::UpdateToggleImage( bool toggle )
else else
[m_toolbarItem setImage:m_bmpNormal.GetNSImage()]; [m_toolbarItem setImage:m_bmpNormal.GetNSImage()];
} }
else
#endif #endif
{
if ( IsButton() ) if ( IsButton() )
[(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)]; [(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)];
}
} }
wxToolBarTool::wxToolBarTool( wxToolBarTool::wxToolBarTool(