network: Fix IPv6 settings not being applicable when method changes
When changing the method from Manual to Automatic, we need to clear the gateway setting, otherwise the settings verification will fail: ipv6.gateway: gateway cannot be set if there are no addresses configured Another fallout of the libnm 1.2 port https://bugzilla.gnome.org/show_bug.cgi?id=769230
This commit is contained in:
parent
94e2be8ff6
commit
a90dc605d6
1 changed files with 6 additions and 2 deletions
|
@ -654,10 +654,14 @@ ui_to_setting (CEPageIP6 *page)
|
|||
}
|
||||
|
||||
nm_setting_ip_config_clear_addresses (page->setting);
|
||||
if (g_str_equal (method, NM_SETTING_IP6_CONFIG_METHOD_MANUAL))
|
||||
if (g_str_equal (method, NM_SETTING_IP6_CONFIG_METHOD_MANUAL)) {
|
||||
children = gtk_container_get_children (GTK_CONTAINER (page->address_list));
|
||||
else
|
||||
} else {
|
||||
g_object_set (G_OBJECT (page->setting),
|
||||
NM_SETTING_IP_CONFIG_GATEWAY, NULL,
|
||||
NULL);
|
||||
children = NULL;
|
||||
}
|
||||
|
||||
for (l = children; l; l = l->next) {
|
||||
GtkWidget *row = l->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue