summaryrefslogtreecommitdiffstats
path: root/collectiondatesview.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-02-17 11:22:40 +0100
committerArno <arno@disconnect.de>2018-02-17 11:22:40 +0100
commit98bc2dd70847735d852b644da3fa5cc0f1fd1623 (patch)
treecd52008cb9f9dd6b3c1414ac7aa5665e15da0d6f /collectiondatesview.cpp
parent3788e9c79550a7e1ac1b3b9e722a53e388db890f (diff)
downloadBeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.tar.gz
BeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.tar.bz2
BeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.zip
Fix sorting in CollectionWidgets
Sort everything ascending, except CollectionDatesView.
Diffstat (limited to 'collectiondatesview.cpp')
-rw-r--r--collectiondatesview.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}