network: Don't warn when setting empty IPv4 gateway
Set an empty string when there's no IPv4 gateway rather than warn.
This commit is contained in:
parent
a2a70c7376
commit
c50d1adb0f
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ add_route_row (CEPageIP4 *page,
|
|||
g_signal_connect_swapped (widget, "changed", G_CALLBACK (ce_page_changed), page);
|
||||
g_signal_connect_swapped (widget, "activate", G_CALLBACK (ensure_empty_routes_row), page);
|
||||
g_object_set_data (G_OBJECT (row), "gateway", widget);
|
||||
gtk_entry_set_text (GTK_ENTRY (widget), gateway);
|
||||
gtk_entry_set_text (GTK_ENTRY (widget), gateway ? gateway : "");
|
||||
gtk_entry_set_width_chars (GTK_ENTRY (widget), 16);
|
||||
gtk_widget_set_hexpand (widget, TRUE);
|
||||
gtk_container_add (GTK_CONTAINER (row_box), widget);
|
||||
|
|
Loading…
Add table
Reference in a new issue