From 03d607e379ac9fe48315ce121ada76338ed6686d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 12 Jul 2017 00:45:41 +0200 Subject: Instead of emulating it we can also just layout the items in reverse order --- framework/src/domain/maillistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/src') diff --git a/framework/src/domain/maillistmodel.cpp b/framework/src/domain/maillistmodel.cpp index fa0dda04..2d9f3147 100644 --- a/framework/src/domain/maillistmodel.cpp +++ b/framework/src/domain/maillistmodel.cpp @@ -295,8 +295,8 @@ void MailListModel::setMail(const QVariant &variant) mFetchMails = true; mFetchedMails.clear(); qDebug() << "Running mail query: " << mail->resourceInstanceIdentifier() << mail->identifier(); - //Latest mail at the bottom - sort(0, Qt::AscendingOrder); + //Latest mail on top + sort(0, Qt::DescendingOrder); runQuery(query); } -- cgit v1.2.3