summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mailcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/mailcontroller.cpp')
-rw-r--r--framework/src/domain/mailcontroller.cpp4
1 files changed, 3 insertions, 1 deletions
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