Merge branch 'Plasma/5.18'

This commit is contained in:
Bhushan Shah 2020-01-30 15:22:36 +05:30
commit c178478b3a

View file

@ -54,14 +54,9 @@ DialerUtils::~DialerUtils()
void DialerUtils::dial(const QString &number) void DialerUtils::dial(const QString &number)
{ {
using namespace ::i18n::phonenumbers;
PhoneNumberUtil* util = PhoneNumberUtil::GetInstance();
string stdnumber = number.toUtf8().constData();
util->Normalize(&stdnumber);
// FIXME: this should be replaced by kpeople thing // FIXME: this should be replaced by kpeople thing
qDebug() << "Starting call..."; qDebug() << "Starting call...";
Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(QString::fromStdString(stdnumber)); Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(number);
connect(pendingChannel, &Tp::PendingChannelRequest::finished, pendingChannel, [=](){ connect(pendingChannel, &Tp::PendingChannelRequest::finished, pendingChannel, [=](){
if (pendingChannel->isError()) { if (pendingChannel->isError()) {
qWarning() << "Error when requesting channel" << pendingChannel->errorMessage(); qWarning() << "Error when requesting channel" << pendingChannel->errorMessage();