mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Switch dialer code to using tel: format
This commit is contained in:
parent
2200368a9c
commit
bd1ed772b0
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue