From 51018b7788a87658fd5fccb645a8e808e34d9450 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 22 Mar 2017 22:01:59 +0100 Subject: Mark the currently viewed mail as read. The listview is absolutely useless with non-uniform entries. We have to do or own tracking of the current index, we have to do our own scrolling, the flickable scrolling is horrible with a mouse, and even though caching all delegates somewhat improves the situation, it's still laggy every now and then. However, this now at least works somewhat correctly. But we'll really have to look for a new solution for this eventually. --- framework/domain/mailcontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework') diff --git a/framework/domain/mailcontroller.cpp b/framework/domain/mailcontroller.cpp index 962b785f..b912567a 100644 --- a/framework/domain/mailcontroller.cpp +++ b/framework/domain/mailcontroller.cpp @@ -61,6 +61,8 @@ void MailController::updateActions() if (mail) { action_moveToTrash->setEnabled(!mail->getTrash()); action_restoreFromTrash->setEnabled(mail->getTrash()); + action_markAsRead->setEnabled(mail->getUnread()); + action_markAsUnread->setEnabled(!mail->getUnread()); } } -- cgit v1.2.3