X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36ba5f7cb0d831c61048e5ee5bb6a71e691cc3f3..3c5487b14442ddbc6e43ee2f4475b5a6ba251fb1:/src/mac/carbon/listbox.cpp?ds=sidebyside diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index ae36062d4b..50e9f4445f 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -106,7 +106,9 @@ static pascal void DataBrowserItemNotificationProc(ControlRef browser, DataBrow event.SetString( list->GetString(i) ); event.SetInt(i) ; event.SetExtraLong( list->HasMultipleSelection() ? message == kDataBrowserItemSelected : TRUE ); - list->GetEventHandler()->ProcessEvent(event) ; + wxPostEvent( list->GetEventHandler() , event ) ; + // direct notification is not always having the listbox GetSelection() having in synch with event + // list->GetEventHandler()->ProcessEvent(event) ; } break ; }