diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index f2e97a33da..0adf8f6b72 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -503,6 +503,11 @@ void wxListWidgetCocoaImpl::ListInsert( unsigned int n ) void wxListWidgetCocoaImpl::ListDelete( unsigned int n ) { + if ( [m_tableView isRowSelected:n] ) + { + [m_tableView deselectRow:n]; + } + [m_tableView reloadData]; if ( m_autoSize )