disable sorting for single album view
ClosedPublic

Authored by astippich on Sep 13 2018, 7:31 PM.

Details

Summary

disable the sorting for single album. does not make any sense, does not work. seems to have sneaked in during refactoring of the views
also override the sorting method for the album proxy model to be safe

Test Plan

no sorting button appears when viewing a single album

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich requested review of this revision.Sep 13 2018, 7:31 PM
astippich created this revision.
mgallien requested changes to this revision.Sep 19 2018, 5:35 AM
mgallien added inline comments.
src/models/singlealbumproxymodel.cpp
119–122 ↗(On Diff #41574)

Please remove this. Somebody reading this code will not understand why it could be empty.
It could also be interesting to have proper sorting for an album if could sort by time, rank or something else.

This revision now requires changes to proceed.Sep 19 2018, 5:35 AM
astippich updated this revision to Diff 41946.Sep 19 2018, 7:55 PM
  • remove function override

I removed the override.

src/models/singlealbumproxymodel.cpp
119–122 ↗(On Diff #41574)

One could argue that an album should always be displayed in its correct order, but anyway, all sort options currently clash with the way the multi disc albums are handled. The labels (e.g. CD1, CD2) will be displayed somewhere in the middle, which is nonsense.

mgallien accepted this revision.Sep 19 2018, 8:17 PM
This revision is now accepted and ready to land.Sep 19 2018, 8:17 PM
This revision was automatically updated to reflect the committed changes.