libnm: don't invert order in array properties

The order of elements in array properties was inverted when
reconstructing the array. Keep the original order from D-Bus.
This commit is contained in:
Beniamino Galvani 2017-11-08 18:57:59 +01:00
parent a5b4850682
commit c90118ff60

View file

@ -572,7 +572,7 @@ object_created (GObject *obj, const char *path, gpointer user_data)
object_class->object_creation_failed (odata->self, path);
}
odata->objects[--odata->remaining] = obj ? g_object_ref (obj) : NULL;
odata->objects[odata->length - odata->remaining--] = obj ? g_object_ref (obj) : NULL;
object_property_maybe_complete (odata->self);
}