diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/table/table_view.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc index 42c137d..2eaab2b 100644 --- a/views/controls/table/table_view.cc +++ b/views/controls/table/table_view.cc @@ -1526,10 +1526,12 @@ void TableView::UpdateContentOffset() { void TableView::UpdateGroups() { // Add the groups. if (model_ && model_->HasGroups()) { - ListView_EnableGroupView(list_view_, true); - ListView_RemoveAllGroups(list_view_); + // Windows XP seems to disable groups if we remove them, so we + // re-enable them. + ListView_EnableGroupView(list_view_, true); + TableModel::Groups groups = model_->GetGroups(); LVGROUP group = { 0 }; group.cbSize = sizeof(LVGROUP); |