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

GIT_SILENT: migration will be removed in kf6

parent 22987d94
Pipeline #58761 passed with stage
in 3 minutes and 40 seconds
...@@ -31,7 +31,10 @@ using namespace Kontact; ...@@ -31,7 +31,10 @@ using namespace Kontact;
#include <QDBusConnectionInterface> #include <QDBusConnectionInterface>
#include <iostream> #include <iostream>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <kdelibs4configmigrator.h> #include <kdelibs4configmigrator.h>
#endif
using namespace std; using namespace std;
static const char version[] = KONTACT_VERSION; static const char version[] = KONTACT_VERSION;
...@@ -149,11 +152,12 @@ int main(int argc, char **argv) ...@@ -149,11 +152,12 @@ int main(int argc, char **argv)
KontactApp app(argc, &argv); KontactApp app(argc, &argv);
KCrash::initialize(); KCrash::initialize();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("kontact")); Kdelibs4ConfigMigrator migrate(QStringLiteral("kontact"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kontactrc") << QStringLiteral("kontact_summaryrc")); migrate.setConfigFiles(QStringList() << QStringLiteral("kontactrc") << QStringLiteral("kontact_summaryrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kontactui.rc")); migrate.setUiFiles(QStringList() << QStringLiteral("kontactui.rc"));
migrate.migrate(); migrate.migrate();
#endif
KAboutData about(QStringLiteral("kontact"), KAboutData about(QStringLiteral("kontact"),
i18n("Kontact"), i18n("Kontact"),
QLatin1String(version), QLatin1String(version),
......
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