summaryrefslogtreecommitdiffstats
path: root/collectionartistsview.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 /collectionartistsview.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 'collectionartistsview.cpp')
-rw-r--r--collectionartistsview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/collectionartistsview.cpp b/collectionartistsview.cpp
index 13b98b1..464ca14 100644
--- a/collectionartistsview.cpp
+++ b/collectionartistsview.cpp
@@ -8,6 +8,7 @@ CollectionArtistsView::CollectionArtistsView(QWidget *parent) : CollectionWidget
}
void CollectionArtistsView::populate(){
+ disableSorting();
model()->clear();
model()->setHorizontalHeaderLabels(headers());
QSqlDatabase db = QSqlDatabase::database("beetplayerdb");
@@ -66,4 +67,5 @@ void CollectionArtistsView::populate(){
}
}
}
+ enableSorting();
}