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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user