Skip to content

Commit

Permalink
Change default grouping to album disc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jun 7, 2020
1 parent 436cdea commit 92d6fc3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/collection/collectionfilterwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void CollectionFilterWidget::SetCollectionModel(CollectionModel *model) {
s.beginGroup(settings_group_);
model_->SetGroupBy(CollectionModel::Grouping(
CollectionModel::GroupBy(s.value(group_by(1), int(CollectionModel::GroupBy_AlbumArtist)).toInt()),
CollectionModel::GroupBy(s.value(group_by(2), int(CollectionModel::GroupBy_Album)).toInt()),
CollectionModel::GroupBy(s.value(group_by(2), int(CollectionModel::GroupBy_AlbumDisc)).toInt()),
CollectionModel::GroupBy(s.value(group_by(3), int(CollectionModel::GroupBy_None)).toInt())));
}

Expand Down
2 changes: 1 addition & 1 deletion src/collection/collectionmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ CollectionModel::CollectionModel(CollectionBackend *backend, Application *app, Q
root_->lazy_loaded = true;

group_by_[0] = GroupBy_AlbumArtist;
group_by_[1] = GroupBy_Album;
group_by_[1] = GroupBy_AlbumDisc;
group_by_[2] = GroupBy_None;

cover_loader_options_.desired_height_ = kPrettyCoverSize;
Expand Down
2 changes: 1 addition & 1 deletion src/internet/internetsearchmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ InternetSearchModel::InternetSearchModel(InternetService *service, QObject *pare
{

group_by_[0] = CollectionModel::GroupBy_AlbumArtist;
group_by_[1] = CollectionModel::GroupBy_Album;
group_by_[1] = CollectionModel::GroupBy_AlbumDisc;
group_by_[2] = CollectionModel::GroupBy_None;

no_cover_icon_ = album_icon_.pixmap(album_icon_.availableSizes().last()).scaled(CollectionModel::kPrettyCoverSize, CollectionModel::kPrettyCoverSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
Expand Down
2 changes: 1 addition & 1 deletion src/internet/internetsearchview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void InternetSearchView::ReloadSettings() {

SetGroupBy(CollectionModel::Grouping(
CollectionModel::GroupBy(s.value("search_group_by1", int(CollectionModel::GroupBy_AlbumArtist)).toInt()),
CollectionModel::GroupBy(s.value("search_group_by2", int(CollectionModel::GroupBy_Album)).toInt()),
CollectionModel::GroupBy(s.value("search_group_by2", int(CollectionModel::GroupBy_AlbumDisc)).toInt()),
CollectionModel::GroupBy(s.value("search_group_by3", int(CollectionModel::GroupBy_None)).toInt())));
s.endGroup();

Expand Down

0 comments on commit 92d6fc3

Please sign in to comment.