[gom] gom: Fix insertion of resources twice removed from GomResource
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Fix insertion of resources twice removed from GomResource
- Date: Tue, 4 Nov 2014 18:56:14 +0000 (UTC)
commit 59d8b6f4187e4d8ed81964520617408c3e1568ad
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 4 13:08:53 2014 +0100
gom: Fix insertion of resources twice removed from GomResource
When inserting an object that's a child class to a child class of
GomResource, only the first insert is actually an insert, the rest
are updates.
gom/gom-resource.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gom/gom-resource.c b/gom/gom-resource.c
index c076b52..762e3c3 100644
--- a/gom/gom-resource.c
+++ b/gom/gom-resource.c
@@ -610,6 +610,8 @@ gom_resource_do_save (GomResource *resource,
set_pkey(resource, &value);
gom_resource_set_is_from_table(resource, TRUE);
g_value_unset(&value);
+
+ is_insert = FALSE;
}
g_object_unref(command);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]