Skip to content

Commit

Permalink
Merge pull request #4352 from ronso0/sort-by-color
Browse files Browse the repository at this point in the history
playlist: enable sorting by color
  • Loading branch information
daschuer authored Oct 4, 2021
2 parents 9fe0128 + 0b1f811 commit b214480
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/library/playlisttablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ void PlaylistTableModel::initSortColumnMapping() {
m_columnIndexBySortColumnId[static_cast<int>(
TrackModel::SortColumnId::Preview)] =
fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW);
m_columnIndexBySortColumnId[static_cast<int>(
TrackModel::SortColumnId::Color)] =
fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COLOR);
m_columnIndexBySortColumnId[static_cast<int>(
TrackModel::SortColumnId::CoverArt)] =
fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART);
Expand Down

0 comments on commit b214480

Please sign in to comment.