From 98bc2dd70847735d852b644da3fa5cc0f1fd1623 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Feb 2018 11:22:40 +0100 Subject: Fix sorting in CollectionWidgets Sort everything ascending, except CollectionDatesView. --- collectionfavoritesview.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'collectionfavoritesview.cpp') diff --git a/collectionfavoritesview.cpp b/collectionfavoritesview.cpp index d57d0d2..a202fcb 100644 --- a/collectionfavoritesview.cpp +++ b/collectionfavoritesview.cpp @@ -8,6 +8,7 @@ CollectionFavoritesView::CollectionFavoritesView(QWidget *parent) : CollectionWi } void CollectionFavoritesView::populate(){ + disableSorting(); model()->clear(); model()->setHorizontalHeaderLabels(headers()); QSqlDatabase db = QSqlDatabase::database("beetplayerdb"); @@ -40,4 +41,5 @@ void CollectionFavoritesView::populate(){ curSong->setData(favQ2.value(5), LengthRole); root->appendRow(QList() << curSong); } + enableSorting(); } -- cgit v1.2.3-70-g09d2