Commit 8df1069f authored by Dan Winship's avatar Dan Winship
Browse files

network: fix wired/mobile activation

You have to pass the NMDevice to nm_client_activate_connection() for a
device-specific connection. This got broken at some point in the
rewrites since 3.4.

https://bugzilla.gnome.org/show_bug.cgi?id=682469
parent ecdb1d84
......@@ -331,8 +331,9 @@ device_off_toggled (GtkSwitch *sw,
if (connection == NULL)
return;
nm_client_activate_connection (client,
connection, NULL, NULL,
NULL, NULL);
connection,
net_device_get_nm_device (NET_DEVICE (device_mobile)),
NULL, NULL, NULL);
} else {
connection = net_device_get_find_connection (NET_DEVICE (device_mobile));
if (connection == NULL)
......
......@@ -168,8 +168,9 @@ device_off_toggled (GtkSwitch *sw,
if (connection == NULL)
return;
nm_client_activate_connection (client,
connection, NULL, NULL,
NULL, NULL);
connection,
net_device_get_nm_device (NET_DEVICE (device_wired)),
NULL, NULL, NULL);
} else {
connection = net_device_get_find_connection (NET_DEVICE (device_wired));
if (connection == NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment