1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-25 13:57:36 +00:00

application: Clarify that -l flag is to be used with numbers only

This will also help unifying handling of tel: URIs.

(cherry picked from commit 464f3a993e)
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-09-07 13:49:05 +02:00
parent 968458a219
commit f9cafbb6e1

View file

@ -267,12 +267,6 @@ dial_action (GSimpleAction *action,
number = g_variant_get_string (parameter, NULL);
g_return_if_fail (number != NULL);
if (g_str_has_prefix (number, "sip:") ||
g_str_has_prefix (number, "sips:")) {
dial_string = g_strdup (number);
goto proper;
}
number_ok = check_dial_number (number);
if (!number_ok) {
g_warning ("Dial number `%s' is not a valid dial string",
@ -288,7 +282,6 @@ dial_action (GSimpleAction *action,
g_debug ("Dialing dial string `%s' extracted from number `%s'",
dial_string, number);
proper:
start_proper (self);
calls_main_window_dial (self->main_window,
@ -689,7 +682,7 @@ calls_application_init (CallsApplication *self)
{
"dial", 'l', G_OPTION_FLAG_NONE,
G_OPTION_ARG_STRING, NULL,
_("Dial a number"),
_("Dial a telephone number"),
_("NUMBER")
},
{