Skip to content

albumsview: Fix selection of multiple albums

Jean Felder requested to merge wip/jfelder/albumsview-selection-fix into master

Since the introduction of rubberband selection in AlbumsView (commit 9d044564), the selection of multiple albums via left click is broken. When updating the selected albums, the rubberband selection is not correctly detected.

The issue is fixed by correctly detecting a rubberband selection: this selection is active when the number of newly selected albums is greater than 1.

Once the selection mode is active, the following behavior is expected:

  • with rubberband selection, holding ctrl inverts the selection state
  • with rubberband selection, not holding ctrl creates a new selection
  • a left click inverts the selected state of an album

Closes: #406 (closed)

Merge request reports