[Libreoffice-bugs] [Bug 138865] Selecting a tree view row with a check box entry toggles the entry

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Dec 17 20:55:47 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138865

--- Comment #11 from Caolán McNamara <caolanm at redhat.com> ---
Maybe...

a) the auto-toggle on click should only kick in if there is only one checkbox
in a row (which would solve this case regardless of any other potential
changes) because how do we know which one should toggle.

b) it seems more natural to me that the first click on an unselected row just
selects it. Subsequent clicks on a selected row to change the toggle like it
currently does seems fairly ok too.

Another option is that this toggle on single click is something that really
only the autofilter wants to do, it might then be the case that setting
"single-click-activate" on the treeviews in filterdropdown.ui to true (which
sets mbActivateOnSingleClick in SvTreeListBox) then connecting via
connect_row_activated to know when a row was clicked on and manually toggle the
row's checkbox in a callback there would work and make this auto-toggling on
row click an autofilter only feature.

and/or some hybrid of b where if mbActivateOnSingleClick is set then a first
click on an unselected row *does* toggle and select it, but with
mbActivateOnSingleClick false it just selects it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201217/68573eb6/attachment.htm>


More information about the Libreoffice-bugs mailing list