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

  • From: "Janus" <trac@xxxxxxxxxxxx>
  • Date: Tue, 05 May 2015 10:18:33 -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):

Replying to [comment:6 stippi]:

This is not a fix, and it makes things worse, actually, by not adopting
the UI to the selection under a mysterious condition.

I don't understand what do you mean, this patch move the focus row with
the selection when the user select one partition in the PartitionView.

How make things worse?

See my comment:1. The fix should be done in `BColumnListView`. The focus
row is set when the user clicks a row (and it is selected by the list view
code). However, when another row is selected programatically, the focus
row is not adjusted to the changed selection. However, that is what should
happen.

This works in single row selection, with SetFocusRow you move the focus
and eventually the selection. But this function invoke the
SELECTION_CHANGE only if the focusRow is different from the previous
value.

I agree that the class need a review, the edit mode doesn't work at all.

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

Other related posts: