mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Merge branch 'Plasma/5.18'
This commit is contained in:
commit
ac44590678
1 changed files with 6 additions and 1 deletions
|
|
@ -54,9 +54,14 @@ DialerUtils::~DialerUtils()
|
|||
|
||||
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
|
||||
qDebug() << "Starting call...";
|
||||
Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(number);
|
||||
Tp::PendingChannelRequest *pendingChannel = m_simAccount->ensureAudioCall(QString::fromStdString(stdnumber));
|
||||
connect(pendingChannel, &Tp::PendingChannelRequest::finished, pendingChannel, [=](){
|
||||
if (pendingChannel->isError()) {
|
||||
qWarning() << "Error when requesting channel" << pendingChannel->errorMessage();
|
||||
|
|
|
|||
Loading…
Reference in a new issue