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:
parent
968458a219
commit
f9cafbb6e1
1 changed files with 1 additions and 8 deletions
|
@ -267,12 +267,6 @@ dial_action (GSimpleAction *action,
|
||||||
number = g_variant_get_string (parameter, NULL);
|
number = g_variant_get_string (parameter, NULL);
|
||||||
g_return_if_fail (number != 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);
|
number_ok = check_dial_number (number);
|
||||||
if (!number_ok) {
|
if (!number_ok) {
|
||||||
g_warning ("Dial number `%s' is not a valid dial string",
|
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'",
|
g_debug ("Dialing dial string `%s' extracted from number `%s'",
|
||||||
dial_string, number);
|
dial_string, number);
|
||||||
|
|
||||||
proper:
|
|
||||||
start_proper (self);
|
start_proper (self);
|
||||||
|
|
||||||
calls_main_window_dial (self->main_window,
|
calls_main_window_dial (self->main_window,
|
||||||
|
@ -689,7 +682,7 @@ calls_application_init (CallsApplication *self)
|
||||||
{
|
{
|
||||||
"dial", 'l', G_OPTION_FLAG_NONE,
|
"dial", 'l', G_OPTION_FLAG_NONE,
|
||||||
G_OPTION_ARG_STRING, NULL,
|
G_OPTION_ARG_STRING, NULL,
|
||||||
_("Dial a number"),
|
_("Dial a telephone number"),
|
||||||
_("NUMBER")
|
_("NUMBER")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue