summaryrefslogtreecommitdiff
path: root/src/devices/nm-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/nm-device.c')
-rw-r--r--src/devices/nm-device.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index dc41341c63..c2c2a3f63f 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -6874,9 +6874,8 @@ _try_add_available_connection (NMDevice *self, NMConnection *connection)
if (nm_device_check_connection_compatible (self, connection)) {
if (NM_DEVICE_GET_CLASS (self)->check_connection_available (self, connection, NULL)) {
- g_hash_table_insert (NM_DEVICE_GET_PRIVATE (self)->available_connections,
- g_object_ref (connection),
- GUINT_TO_POINTER (1));
+ g_hash_table_add (NM_DEVICE_GET_PRIVATE (self)->available_connections,
+ g_object_ref (connection));
return TRUE;
}
}