From 463c649ca8e227af518042a7dc4c8ed5740c0476 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 27 Jun 2012 16:39:37 +0200 Subject: [PATCH] Update the collection 'Items' property correctly * Problems due to not setting constructing flag when construction of SecretCollection completed --- library/secret-collection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/secret-collection.c b/library/secret-collection.c index da5cade..3cea1a6 100644 --- a/library/secret-collection.c +++ b/library/secret-collection.c @@ -623,6 +623,7 @@ secret_collection_initable_init (GInitable *initable, if (!collection_load_items_sync (self, cancellable, error)) return FALSE; + self->pv->constructing = FALSE; return TRUE; } @@ -721,12 +722,15 @@ secret_collection_async_initable_init_finish (GAsyncInitable *initable, GAsyncResult *result, GError **error) { + SecretCollection *self = SECRET_COLLECTION (initable); + g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (initable), secret_collection_async_initable_init_async), FALSE); if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error)) return FALSE; + self->pv->constructing = FALSE; return TRUE; } -- 2.7.4