Commit 5b185ac7 authored by Laurent Montel's avatar Laurent Montel 😁

Make it enable all the time

parent 09dafaad
...@@ -1162,9 +1162,9 @@ void KMMainWidget::updateMoveAction(bool hasUnreadMails, bool hasMails) ...@@ -1162,9 +1162,9 @@ void KMMainWidget::updateMoveAction(bool hasUnreadMails, bool hasMails)
const bool enable_goto_unread = hasUnreadMails const bool enable_goto_unread = hasUnreadMails
|| (KMailSettings::self()->loopOnGotoUnread() == KMailSettings::EnumLoopOnGotoUnread::LoopInAllFolders) || (KMailSettings::self()->loopOnGotoUnread() == KMailSettings::EnumLoopOnGotoUnread::LoopInAllFolders)
|| (KMailSettings::self()->loopOnGotoUnread() == KMailSettings::EnumLoopOnGotoUnread::LoopInAllMarkedFolders); || (KMailSettings::self()->loopOnGotoUnread() == KMailSettings::EnumLoopOnGotoUnread::LoopInAllMarkedFolders);
actionCollection()->action(QStringLiteral("go_next_message"))->setEnabled(hasMails); //actionCollection()->action(QStringLiteral("go_next_message"))->setEnabled(hasMails);
actionCollection()->action(QStringLiteral("go_next_unread_message"))->setEnabled(enable_goto_unread); actionCollection()->action(QStringLiteral("go_next_unread_message"))->setEnabled(enable_goto_unread);
actionCollection()->action(QStringLiteral("go_prev_message"))->setEnabled(hasMails); //actionCollection()->action(QStringLiteral("go_prev_message"))->setEnabled(hasMails);
actionCollection()->action(QStringLiteral("go_prev_unread_message"))->setEnabled(enable_goto_unread); actionCollection()->action(QStringLiteral("go_prev_unread_message"))->setEnabled(enable_goto_unread);
if (mAkonadiStandardActionManager && mAkonadiStandardActionManager->action(Akonadi::StandardMailActionManager::MarkAllMailAsRead)) { if (mAkonadiStandardActionManager && mAkonadiStandardActionManager->action(Akonadi::StandardMailActionManager::MarkAllMailAsRead)) {
mAkonadiStandardActionManager->action(Akonadi::StandardMailActionManager::MarkAllMailAsRead)->setEnabled(hasUnreadMails); mAkonadiStandardActionManager->action(Akonadi::StandardMailActionManager::MarkAllMailAsRead)->setEnabled(hasUnreadMails);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment