[haiku-commits] r39144 - haiku/trunk/src/preferences/locale

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Oct 2010 18:15:10 +0200 (CEST)

Author: anevilyak
Date: 2010-10-25 18:15:10 +0200 (Mon, 25 Oct 2010)
New Revision: 39144
Changeset: http://dev.haiku-os.org/changeset/39144
Ticket: http://dev.haiku-os.org/ticket/6747

Modified:
   haiku/trunk/src/preferences/locale/LocaleWindow.cpp
Log:
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.



Modified: haiku/trunk/src/preferences/locale/LocaleWindow.cpp
===================================================================
--- haiku/trunk/src/preferences/locale/LocaleWindow.cpp 2010-10-25 14:48:26 UTC 
(rev 39143)
+++ haiku/trunk/src/preferences/locale/LocaleWindow.cpp 2010-10-25 16:15:10 UTC 
(rev 39144)
@@ -197,7 +197,7 @@
                        && lastAddedConventionsItem != NULL
                        && lastAddedConventionsItem->Code() == item->Code()) {
                        if (!strcmp(conventionID, defaultConventions.ID())) {
-                               lastAddedConventionsItem->SetExpanded(true);
+                               
fConventionsListView->Expand(lastAddedConventionsItem);
                                fInitialConventionsItem = item;
                        }
                        fConventionsListView->AddUnder(item, 
lastAddedConventionsItem);


Other related posts:

  • » [haiku-commits] r39144 - haiku/trunk/src/preferences/locale - anevilyak