summaryrefslogtreecommitdiff
path: root/src/nm-manager.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-11-05 07:52:51 +0100
committerThomas Haller <thaller@redhat.com>2015-12-04 15:46:04 +0100
commit3b6602b65636d95ccfa78d2c1e075497f7dd194c (patch)
tree6c977a91cf2f6b24b0289a8d9a8d13ec980da60c /src/nm-manager.c
parent4f5cd099be7853c12d5b97e931193a5b47ef800b (diff)
downloadNetworkManager-3b6602b65636d95ccfa78d2c1e075497f7dd194c.tar.gz
device: expose nm_device_set_autoconnect() function
Diffstat (limited to 'src/nm-manager.c')
-rw-r--r--src/nm-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 819ec5cc0b..d5c86fb8b5 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -3795,7 +3795,7 @@ do_sleep_wake (NMManager *self, gboolean sleeping_changed)
nm_device_set_enabled (device, enabled);
}
- g_object_set (G_OBJECT (device), NM_DEVICE_AUTOCONNECT, TRUE, NULL);
+ nm_device_set_autoconnect (device, TRUE);
nm_device_set_unmanaged_flags (device, NM_UNMANAGED_INTERNAL, FALSE, NM_DEVICE_STATE_REASON_NOW_MANAGED);
}