Commit e5fd88a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update actions

parent 3c074281
Pipeline #34448 passed with stage
in 47 minutes and 19 seconds
......@@ -43,7 +43,7 @@ endif()
set(KDEPIM_VERSION "${PIM_VERSION}${KDEPIM_DEV_VERSION} (${RELEASE_SERVICE_VERSION})")
set(AKONADI_MIMELIB_VERSION "5.15.41")
set(AKONADI_MIMELIB_VERSION "5.15.42")
set(AKONADI_CONTACT_VERSION "5.15.40")
set(CALENDARUTILS_LIB_VERSION "5.15.40")
set(IDENTITYMANAGEMENT_LIB_VERSION "5.15.40")
......
......@@ -159,6 +159,7 @@ void KMReaderMainWin::showMessage(const QString &encoding, const Akonadi::Item &
}
mMsg = msg;
mMsgActions->setCurrentMessage(msg);
mAkonadiStandardActionManager->setItems({mMsg});
const bool canChange = mParentCollection.isValid() ? static_cast<bool>(mParentCollection.rights() & Akonadi::Collection::CanDeleteItem) : false;
mTrashAction->setEnabled(canChange);
......@@ -212,6 +213,7 @@ void KMReaderMainWin::showMessage(const QString &encoding, const QVector<KMime::
mCurrentMessageIndex = 0;
initializeMessage(mListMessage.at(mCurrentMessageIndex));
mReaderWin->hasMultiMessages(message.count() > 1);
mAkonadiStandardActionManager->setItems({});
updateButtons();
}
......@@ -229,6 +231,7 @@ void KMReaderMainWin::initializeMessage(const KMime::Message::Ptr &message)
setCaption(message->subject()->asUnicodeString());
mTrashAction->setEnabled(false);
mAkonadiStandardActionManager->setItems({mMsg});
updateActions();
}
......
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