Commit 4be70465 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Migration code will be removed in kf6

parent 6b3ba37b
Pipeline #58986 passed with stage
in 6 minutes and 18 seconds
......@@ -31,7 +31,10 @@
#include <KEMailSettings>
#include <KLocalizedString>
#include <KMessageBox>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <qt5keychain/keychain.h>
using namespace QKeychain;
#include <KWallet>
......@@ -109,10 +112,11 @@ TransportManager::TransportManager()
: QObject()
, d(new TransportManagerPrivate(this))
{
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("transportmanager"));
migrate.setConfigFiles(QStringList() << QStringLiteral("mailtransports"));
migrate.migrate();
#endif
qAddPostRoutine(destroyStaticTransportManager);
d->config = new KConfig(QStringLiteral("mailtransports"));
......
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