mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
Revert "dialer: normalize the numbers before dialing"
This reverts commit 86d6408b93.
appearantly this is private(!) and in either case tp-ofono should
normalize numbers.
This commit is contained in:
parent
86d6408b93
commit
cb4149cf6e
1 changed files with 1 additions and 6 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue