From 31a81a2b939f0c74bed6dc8b10d57207afcff7c0 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Mon, 25 Oct 2010 16:15:10 +0000 Subject: [PATCH] Go through the list view to tell it to expand the super item rather than setting its expanded property. Doesn't actually fix #6747 but at least corrects the observed bogus behavior for now until I figure out a proper solution that isn't hideously inefficient, no thanks to the train wreck that is the API design we inherited from Be for BOLV. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39144 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/locale/LocaleWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/locale/LocaleWindow.cpp b/src/preferences/locale/LocaleWindow.cpp index b365fc76f7..6e4af0b055 100644 --- a/src/preferences/locale/LocaleWindow.cpp +++ b/src/preferences/locale/LocaleWindow.cpp @@ -197,7 +197,7 @@ LocaleWindow::LocaleWindow() && lastAddedConventionsItem != NULL && lastAddedConventionsItem->Code() == item->Code()) { if (!strcmp(conventionID, defaultConventions.ID())) { - lastAddedConventionsItem->SetExpanded(true); + fConventionsListView->Expand(lastAddedConventionsItem); fInitialConventionsItem = item; } fConventionsListView->AddUnder(item, lastAddedConventionsItem);