diff options
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r-- | src/gns/gnunet-gns-gtk_zone.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c index 890ef80d..3a273390 100644 --- a/src/gns/gnunet-gns-gtk_zone.c +++ b/src/gns/gnunet-gns-gtk_zone.c | |||
@@ -61,6 +61,7 @@ check_name_validity_and_commit (struct GNUNET_GNS_Context *gns, gchar *path) | |||
61 | int children; | 61 | int children; |
62 | int c; | 62 | int c; |
63 | int valid = GNUNET_YES; | 63 | int valid = GNUNET_YES; |
64 | char * name; | ||
64 | 65 | ||
65 | char *n_name; | 66 | char *n_name; |
66 | int n_type; | 67 | int n_type; |
@@ -92,6 +93,10 @@ check_name_validity_and_commit (struct GNUNET_GNS_Context *gns, gchar *path) | |||
92 | return; | 93 | return; |
93 | } | 94 | } |
94 | 95 | ||
96 | gtk_tree_model_get(gns->tm, &parent, | ||
97 | TREE_COL_NAME, &name, | ||
98 | -1); | ||
99 | |||
95 | struct GNUNET_NAMESTORE_RecordData rd[children]; | 100 | struct GNUNET_NAMESTORE_RecordData rd[children]; |
96 | 101 | ||
97 | if (FALSE == gtk_tree_model_iter_children (gns->tm, &it, &parent)) | 102 | if (FALSE == gtk_tree_model_iter_children (gns->tm, &it, &parent)) |
@@ -147,7 +152,11 @@ check_name_validity_and_commit (struct GNUNET_GNS_Context *gns, gchar *path) | |||
147 | } | 152 | } |
148 | else | 153 | else |
149 | { | 154 | { |
150 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Valid\n"); | 155 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Valid %s\n", name); |
156 | /* Remove old entries */ | ||
157 | GNUNET_NAMESTORE_record_remove(gns->ns, gns->pkey, name, NULL, NULL, NULL); | ||
158 | /* Create new records */ | ||
159 | g_free (name); | ||
151 | } | 160 | } |
152 | } | 161 | } |
153 | 162 | ||