Opened 10 years ago

Closed 10 years ago

#4120 closed bug (fixed)

Selection weirdness in list views

Reported by: humdinger Owned by: anevilyak
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev31560.

I originally reported these two (related?) bugs to ArmyKnifes bugtracker:

Jonas discovered the same issues with DataTranslations and FileTypes preferences, it's also seen in ScreenSaver and Sounds:

If you select all items in a list with ALT+A right/left clicking or ALT+left clicking into the list has weird effects.

Also, selecting more items via SHIFT+CursorUP/DOWN doesn't work as expected:

  1. Select an entry in the middle.
  2. Hold down SHIFT and move down with CURSOR-DOWN twice

--> 3 entries are selected.

  1. Keep holding SHIFT and move one up with CURSOR-UP

--> The last selected entry should get unselected, but isn't.

(The actual ArmyKnife bug is a bit different, but maybe related, see bug 283 linked above.)

Change History (6)

comment:1 Changed 10 years ago by anevilyak

Owner: changed from axeld to anevilyak

I'm almost certainly to blame for that one...will look into it.

comment:2 Changed 10 years ago by stippi

Shame on me for not reporting this myself, but I've seen this for ages in WonderBrush, that must have been way earlier than your BListView refactoring and fixes. IIRC, BListView caches the first and last selected index. It's most likely something to do with that.

comment:3 in reply to:  2 Changed 10 years ago by anevilyak

Replying to stippi:

Shame on me for not reporting this myself, but I've seen this for ages in WonderBrush, that must have been way earlier than your BListView refactoring and fixes.

Will deal with it regardless, I'm at least quite familiar with BListView's code at this point :) Thanks for the heads up in any event.

comment:4 Changed 10 years ago by anevilyak

Status: newassigned

The first problem is mostly due to allowing alt+a to have an effect in a list view that's in single selection mode in the first place (i.e. Data Translations / File Types). Investigating the second.

comment:5 Changed 10 years ago by anevilyak

The Alt+a + select problem should be fixed in hrev31889. Those particular views should not have been accepting select all in the first place since they were in single selection mode, and as such the view wasn't in the correct mode to update the indices for multiple selections properly.

comment:6 Changed 10 years ago by anevilyak

Resolution: fixed
Status: assignedclosed

Should be fixed in hrev31890.

Note: See TracTickets for help on using tickets.