mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 09:40:17 +01:00
tui: allow empty route metric to indicate default
When entering a manual route, the metric defaults internally to "-1". That is indicated in the TUI as empty entry. We must allow that as valid configuration.
This commit is contained in:
parent
9400f0d84d
commit
ccc2af0efb
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ nmt_route_entry_constructed (GObject *object)
|
|||
|
||||
priv->dest = nmt_ip_entry_new (priv->ip_entry_width, priv->family, TRUE, FALSE);
|
||||
priv->next_hop = nmt_ip_entry_new (priv->ip_entry_width, priv->family, FALSE, TRUE);
|
||||
priv->metric = nmt_newt_entry_numeric_new (priv->metric_entry_width, 0, 65535);
|
||||
priv->metric = nmt_newt_entry_numeric_new_full (priv->metric_entry_width, 0, 65535, TRUE);
|
||||
|
||||
nmt_newt_grid_add (grid, priv->dest, 0, 0);
|
||||
warning_label = create_warning_label (priv->dest);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue