Commit 33deafe6 authored by Dan Williams's avatar Dan Williams

settings: return the right thing when listing connections

parent 153e11ee
......@@ -248,14 +248,14 @@ GSList *
nm_sysconfig_settings_get_connections (NMSysconfigSettings *self)
{
GHashTableIter iter;
gpointer key = NULL;
gpointer data = NULL;
GSList *list = NULL;
g_return_val_if_fail (NM_IS_SYSCONFIG_SETTINGS (self), NULL);
g_hash_table_iter_init (&iter, NM_SYSCONFIG_SETTINGS_GET_PRIVATE (self)->connections);
while (g_hash_table_iter_next (&iter, key, NULL))
list = g_slist_insert_sorted (list, key, connection_sort);
while (g_hash_table_iter_next (&iter, NULL, &data))
list = g_slist_insert_sorted (list, data, connection_sort);
return g_slist_reverse (list);
}
......
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