diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 08:10:23 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 08:10:23 +0000 |
commit | cf99ae3ee5400bacdb3a291cc65bf06ee8e13638 (patch) | |
tree | ba805a93e1ebf9d96f0508db7c0a2a867ee43042 /views | |
parent | 17e486276dbd406991818e1421d9d755cab8b63a (diff) | |
download | chromium_src-cf99ae3ee5400bacdb3a291cc65bf06ee8e13638.zip chromium_src-cf99ae3ee5400bacdb3a291cc65bf06ee8e13638.tar.gz chromium_src-cf99ae3ee5400bacdb3a291cc65bf06ee8e13638.tar.bz2 |
[Win] Enable groups in list views when updating groups.
It seems ListView_RemoveAllGroups disables groups on Win XP, so we re-enable them afterwards.
BUG=55452
TEST=Group headers in table views should be visible on XP
Review URL: http://codereview.chromium.org/3760002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62516 0039d316-1c4b-4281-b951-d872f2087c98
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); |