Update wxNotebook selection when user changes the page in wxOSX.
wxNotebook::m_selection was only updated if the selected page was changed programmatically but not if it was done by the user. Do update it in this case as well, it fixes generation of the events which was broken before because of comparison of the new selection with the incorrect current selection value in m_selection. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -520,6 +520,8 @@ bool wxNotebook::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
newSel, m_selection );
|
||||
event.SetEventObject( this );
|
||||
HandleWindowEvent( event );
|
||||
|
||||
m_selection = newSel;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user