diff options
author | Arno <arno@disconnect.de> | 2018-02-17 11:22:40 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-02-17 11:22:40 +0100 |
commit | 98bc2dd70847735d852b644da3fa5cc0f1fd1623 (patch) | |
tree | cd52008cb9f9dd6b3c1414ac7aa5665e15da0d6f /collectionfavoritesview.cpp | |
parent | 3788e9c79550a7e1ac1b3b9e722a53e388db890f (diff) | |
download | BeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.tar.gz BeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.tar.bz2 BeetPlayer-98bc2dd70847735d852b644da3fa5cc0f1fd1623.zip |
Fix sorting in CollectionWidgets
Sort everything ascending, except CollectionDatesView.
Diffstat (limited to 'collectionfavoritesview.cpp')
-rw-r--r-- | collectionfavoritesview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<QStandardItem*>() << curSong); } + enableSorting(); } |