From f9cafbb6e1380423c49a131409876246d700feb2 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 7 Sep 2021 13:49:05 +0200 Subject: [PATCH] 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 464f3a993e2f67134edf94e8ebe46fdf0a24b547) --- src/calls-application.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/calls-application.c b/src/calls-application.c index 62ddff5..62a7a29 100644 --- a/src/calls-application.c +++ b/src/calls-application.c @@ -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") }, {