Commit 339cd589 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Give a pointer of IdentityManager to MessageViewer::Viewer.

With this IdetityManager the Viewer can detect if the autocrypt storage
should be updated or not.
parent aebbaaa4
Pipeline #46632 passed with stage
in 34 minutes and 48 seconds
......@@ -67,7 +67,7 @@ option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widgets WebEngine WebEngineWidgets)
set(LIBGRAVATAR_VERSION "5.16.40")
set(MAILCOMMON_LIB_VERSION "5.16.40")
set(MESSAGELIB_LIB_VERSION "5.16.40")
set(MESSAGELIB_LIB_VERSION "5.16.41")
set(LIBKLEO_LIB_VERSION "5.16.40")
set(PIMCOMMON_LIB_VERSION "5.16.40")
set(LIBKDEPIM_LIB_VERSION "5.16.40")
......
......@@ -78,6 +78,7 @@ KMReaderWin::KMReaderWin(QWidget *aParent, QWidget *mainWindow, KActionCollectio
auto vlay = new QVBoxLayout(this);
vlay->setContentsMargins(0, 4, 0, 0);
mViewer = new Viewer(this, mainWindow, mActionCollection);
mViewer->setIdentityManager(kmkernel->identityManager());
connect(mViewer, qOverload<const Akonadi::Item &, const QUrl &>(&Viewer::urlClicked), this, &KMReaderWin::slotUrlClicked);
connect(mViewer, &Viewer::requestConfigSync, kmkernel, &KMKernel::slotRequestConfigSync, Qt::QueuedConnection); // happens anyway on shutdown, so we can skip it there with using a queued connection
connect(mViewer, &Viewer::makeResourceOnline, kmkernel, &KMKernel::makeResourceOnline);
......
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