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. --- collectiondatesview.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'collectiondatesview.cpp') diff --git a/collectiondatesview.cpp b/collectiondatesview.cpp index 3589c18..f93685b 100644 --- a/collectiondatesview.cpp +++ b/collectiondatesview.cpp @@ -9,6 +9,7 @@ CollectionDatesView::CollectionDatesView(QWidget *parent) : CollectionWidget(par } void CollectionDatesView::populate(){ + disableSorting(); model()->clear(); model()->setHorizontalHeaderLabels(headers()); QSqlDatabase db = QSqlDatabase::database("beetplayerdb"); @@ -71,4 +72,5 @@ void CollectionDatesView::populate(){ albumItem->appendRow(curSong); } } + enableSorting(Qt::DescendingOrder); } -- cgit v1.2.3-70-g09d2