summaryrefslogtreecommitdiffstats
path: root/collectionfavoritesview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'collectionfavoritesview.cpp')
-rw-r--r--collectionfavoritesview.cpp2
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();
}