summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/qml/MailListView.qml6
-rw-r--r--framework/src/domain/mailcontroller.cpp4
2 files changed, 6 insertions, 4 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index 39cbd47c..da5e9056 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -46,9 +46,9 @@ Item {
46 value: root.currentMail 46 value: root.currentMail
47 } 47 }
48 unread: root.isUnread 48 unread: root.isUnread
49 trash: root.isUnread 49 trash: root.isTrash
50 important: root.isUnread 50 important: root.isImportant
51 draft: root.isUnread 51 draft: root.isDraft
52 operateOnThreads: mailListModel.isThreaded 52 operateOnThreads: mailListModel.isThreaded
53 } 53 }
54 54
diff --git a/framework/src/domain/mailcontroller.cpp b/framework/src/domain/mailcontroller.cpp
index a6c5c555..ea0fe690 100644
--- a/framework/src/domain/mailcontroller.cpp
+++ b/framework/src/domain/mailcontroller.cpp
@@ -64,12 +64,14 @@ void MailController::updateActions()
64 action_moveToTrash->setEnabled(!getTrash()); 64 action_moveToTrash->setEnabled(!getTrash());
65 action_restoreFromTrash->setEnabled(getTrash()); 65 action_restoreFromTrash->setEnabled(getTrash());
66 action_markAsRead->setEnabled(getUnread()); 66 action_markAsRead->setEnabled(getUnread());
67 action_markAsUnread->setEnabled(getUnread()); 67 action_markAsUnread->setEnabled(!getUnread());
68 action_markAsImportant->setEnabled(!getImportant());
68 } else { 69 } else {
69 action_moveToTrash->setEnabled(false); 70 action_moveToTrash->setEnabled(false);
70 action_restoreFromTrash->setEnabled(false); 71 action_restoreFromTrash->setEnabled(false);
71 action_markAsRead->setEnabled(false); 72 action_markAsRead->setEnabled(false);
72 action_markAsUnread->setEnabled(false); 73 action_markAsUnread->setEnabled(false);
74 action_markAsImportant->setEnabled(false);
73 } 75 }
74} 76}
75 77