diff --git a/src/akonadi-contacts/CMakeLists.txt b/src/akonadi-contacts/CMakeLists.txt --- a/src/akonadi-contacts/CMakeLists.txt +++ b/src/akonadi-contacts/CMakeLists.txt @@ -27,7 +27,7 @@ ) -set( AKONADI_PHONE_DIAL_DEFAULT "UseSkype" ) +set( AKONADI_PHONE_DIAL_DEFAULT "UseKdeConnectPhone" ) set( AKONADI_SEND_SMS_DEFAULT "UseSkypeSms" ) ########### next target ############### diff --git a/src/akonadi-contacts/actions/contactactionssettings.kcfg.cmake b/src/akonadi-contacts/actions/contactactionssettings.kcfg.cmake --- a/src/akonadi-contacts/actions/contactactionssettings.kcfg.cmake +++ b/src/akonadi-contacts/actions/contactactionssettings.kcfg.cmake @@ -62,7 +62,7 @@ - kdeconnect-cli --name 'phone name' --share 'tel:%N' + kdeconnect-handler 'tel:%N' The following placeholders can be used in the command: %N: The raw number as stored in the address book. %n: The normalized number with all non-digit characters removed. 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 @@ -71,7 +71,12 @@ return; } - QString command = ContactActionsSettings::self()->phoneCommand(); + QString command; + if (ContactActionsSettings::self()->dialPhoneNumberAction() == ContactActionsSettings::UseKdeConnectPhone) { + command = ContactActionsSettings::self()->kdeconnectCommand(); + } else { + command = ContactActionsSettings::self()->phoneCommand(); + } if (command.isEmpty()) { KMessageBox::sorry(nullptr, i18n("There is no application set which could be executed.\nPlease go to the settings dialog and configure one."));