summaryrefslogtreecommitdiffstats
path: root/collectiondatesview.cpp
diff options
context:
space:
mode:
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);
}