diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ # ECM setup -set(KF5_MIN_VERSION "5.68.0") +set(KF5_MIN_VERSION "5.70.0") find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) diff --git a/src/akonadi-contacts/actions/dialphonenumberaction.cpp b/src/akonadi-contacts/actions/dialphonenumberaction.cpp --- a/src/akonadi-contacts/actions/dialphonenumberaction.cpp +++ b/src/akonadi-contacts/actions/dialphonenumberaction.cpp @@ -30,7 +30,8 @@ #include #include #include -#include +#include +#include #include @@ -79,5 +80,8 @@ command.replace(QLatin1String("%N"), number.number()); command.replace(QLatin1String("%n"), number.normalizedNumber()); - KRun::runCommand(command, nullptr); + KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(command); + job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, nullptr)); + job->start(); + } diff --git a/src/akonadi-contacts/actions/sendsmsaction.cpp b/src/akonadi-contacts/actions/sendsmsaction.cpp --- a/src/akonadi-contacts/actions/sendsmsaction.cpp +++ b/src/akonadi-contacts/actions/sendsmsaction.cpp @@ -29,7 +29,8 @@ #include #include #include -#include +#include +#include #include #include @@ -96,5 +97,8 @@ command.replace(QLatin1String("%t"), QStringLiteral("\"%1\"").arg(message)); //Bug: 293232 In KDE3 We used %F to replace text command.replace(QLatin1String("%F"), message); - KRun::runCommand(command, nullptr); + + KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(command); + job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, nullptr)); + job->start(); } diff --git a/src/akonadi-contacts/actions/showaddressaction.cpp b/src/akonadi-contacts/actions/showaddressaction.cpp --- a/src/akonadi-contacts/actions/showaddressaction.cpp +++ b/src/akonadi-contacts/actions/showaddressaction.cpp @@ -24,7 +24,8 @@ #include "contactactionssettings.h" #include -#include +#include +#include #include @@ -56,7 +57,9 @@ replaceArguments(commandTemplate, address); if (!commandTemplate.isEmpty()) { - KRun::runCommand(commandTemplate, nullptr); + KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(commandTemplate); + job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, nullptr)); + job->start(); } } else if (ContactActionsSettings::self()->showAddressAction() == ContactActionsSettings::UseGooglemap) { QString urlTemplate = QStringLiteral("https://maps.google.com/maps?q=%s,%l,%c");