[calls/gnome-41] application: Clarify that -l flag is to be used with numbers only
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls/gnome-41] application: Clarify that -l flag is to be used with numbers only
- Date: Thu, 28 Oct 2021 12:34:11 +0000 (UTC)
commit f9cafbb6e1380423c49a131409876246d700feb2
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Sep 7 13:49:05 2021 +0200
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 62ddff5b..62a7a296 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")
},
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]