[haiku-bugs] Re: [Haiku] #4414: Selection drawing error in list

  • From: "Janus" <trac@xxxxxxxxxxxx>
  • Date: Tue, 05 May 2015 10:45:05 -0000

#4414: Selection drawing error in list
----------------------------------+----------------------------
Reporter: humdinger | Owner: nobody
Type: bug | Status: new
Priority: low | Milestone: R1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------------+----------------------------

Comment (by Janus):

You introduced a condition `if (focusRow != row)`. If this condition is
`true`, then ` _AdaptToSelectedPartition()` no longer called. I am pretty
convinced that this is a real error. The UI will not adopt to the selected
partition anymore, unless the focus row already happens to be the selected
partition.

This is on purpose, if the focusRow is different from the previous the
SetFocusRow send a Selection_change that invoke
_AdaptToSelectedPartition() and all the code replicated in the two switch
cases.

--
Ticket URL: <https://dev.haiku-os.org/ticket/4414#comment:9>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: