Invalidate selection of item being removed from wxNSTableView

We need to explicitly invalidate selection of item being removed
because it's not done by NSTableView (selection index is retained).
This commit is contained in:
Artur Wieczorek
2021-09-21 19:22:26 +02:00
committed by AW
parent 5715c7f573
commit c97cd8d280

View File

@@ -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 )