diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 12b5b0bf14..283dc5799c 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2304,7 +2304,9 @@ bool wxDataViewMainWindow::ItemAdded(const wxDataViewItem & parent, const wxData { wxDataViewVirtualListModel *list_model = (wxDataViewVirtualListModel*) GetModel(); - UpdateCount(list_model->GetCount()); + m_count = list_model->GetCount(); + + m_selection.OnItemsInserted(GetRowByItem(item), 1); } else {