[haiku-bugs] Re: [Haiku] #8478: File disappears when sorted by "Modified" and right clicked.

  • From: "KapiX" <trac@xxxxxxxxxxxx>
  • Date: Thu, 07 Jun 2012 00:52:30 -0000

#8478: File disappears when sorted by "Modified" and right clicked.
   Reporter:  kallisti5             |      Owner:  anevilyak
       Type:  bug                   |     Status:  assigned
   Priority:  normal                |  Milestone:  R1/alpha4
  Component:  Applications/Tracker  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
Changes (by KapiX):

 * cc: kacperkasper@… (added)


 I did some research on the bug and I found out that it affects files that
 are not recognized ("Generic") only. It happens not only when you right
 click the file but also when you open it (in both cases it gets
 recognized). Files can be sorted also by size or any other attribute, but
 for at least 3 files it must be the same (for example 3 files must be 3.40
 KiB size). Then when clicked/opened file goes to the first place
 (sometimes - not always - second, when file at the first place is
 recognized already) of its "group".

 Debugger shows that problem is in BPoseView::_CheckPoseSortOrder, when
 newIndex = 0; and by that we go to BPoseView::BSearchList which in second
 "if" returns kInsertAtFront (it probably shouldn't).

 Sorry if my comment was misleading. Hope I helped.

Ticket URL: <http://dev.haiku-os.org/ticket/8478#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: