[haiku-commits] haiku: hrev48383 - src/kits/interface

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 26 Nov 2014 13:49:13 +0100 (CET)

hrev48383 adds 1 changeset to branch 'master'
old head: 83b732c7328f1c4601e1a64ce234b93615c0ddc8
new head: 42272d23426442e0463c33d26d0f90ac11e94608
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=42272d2+%5E83b732c

----------------------------------------------------------------------------

42272d2: OutlineListView: yet another list/fullList mismatch.
  
  Fixes #5817.

                                 [ Adrien Destugues <pulkomandy@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev48383
Commit:      42272d23426442e0463c33d26d0f90ac11e94608
URL:         http://cgit.haiku-os.org/haiku/commit/?id=42272d2
Author:      Adrien Destugues <pulkomandy@xxxxxxxxx>
Date:        Wed Nov 26 12:48:52 2014 UTC

Ticket:      https://dev.haiku-os.org/ticket/5817

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/interface/OutlineListView.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/interface/OutlineListView.cpp 
b/src/kits/interface/OutlineListView.cpp
index e396148..bceac3a 100644
--- a/src/kits/interface/OutlineListView.cpp
+++ b/src/kits/interface/OutlineListView.cpp
@@ -194,7 +194,7 @@ BOutlineListView::KeyDown(const char* bytes, int32 numBytes)
                        {
                                BListItem* item = ItemAt(currentSel);
                                if (item && item->fHasSubitems) {
-                                       if (!IsExpanded(currentSel))
+                                       if (!item->IsExpanded())
                                                Expand(item);
                                        else
                                                Select(currentSel + 1);


Other related posts:

  • » [haiku-commits] haiku: hrev48383 - src/kits/interface - pulkomandy