Commit bd1ed772 authored by Bhushan Shah's avatar Bhushan Shah 📱

Switch dialer code to using tel: format

parent 2200368a
......@@ -195,8 +195,8 @@ int main(int argc, char **argv)
window->requestActivate();
if (arguments.length() > 0) {
QString numberArg = arguments[1];
if (numberArg.startsWith("call://")) {
numberArg = numberArg.mid(7);
if (numberArg.startsWith("tel:")) {
numberArg = numberArg.mid(4);
}
dialerUtils->dial(numberArg);
}
......@@ -207,8 +207,8 @@ int main(int argc, char **argv)
}
if (!parser.positionalArguments().isEmpty()) {
QString numberArg = parser.positionalArguments().first();
if (numberArg.startsWith("call://")) {
numberArg = numberArg.mid(7);
if (numberArg.startsWith("tel:")) {
numberArg = numberArg.mid(4);
}
qWarning() << "Calling" << numberArg;
dialerUtils->dial(numberArg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment