aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c')
-rw-r--r--src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c b/src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c
index e0a8b0e4..c912aab6 100644
--- a/src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c
+++ b/src/fs/gnunet-fs-gtk-main_window_create_pseudonym.c
@@ -31,6 +31,7 @@ GNUNET_GTK_create_namespace_dialog_response_cb (GtkDialog *dialog,
31 gint response_id, gpointer user_data) 31 gint response_id, gpointer user_data)
32{ 32{
33 const char *name; 33 const char *name;
34 gchar *name_loc;
34 struct GNUNET_FS_Namespace *ns; 35 struct GNUNET_FS_Namespace *ns;
35 GtkWidget *ad; 36 GtkWidget *ad;
36 GtkBuilder *builder; 37 GtkBuilder *builder;
@@ -51,8 +52,13 @@ GNUNET_GTK_create_namespace_dialog_response_cb (GtkDialog *dialog,
51 (builder, 52 (builder,
52 "GNUNET_GTK_create_namespace_name_entry"))); 53 "GNUNET_GTK_create_namespace_name_entry")));
53 /* FIXME: show busy dialog while doing key creation */ 54 /* FIXME: show busy dialog while doing key creation */
54 ns = GNUNET_FS_namespace_create (GNUNET_FS_GTK_get_fs_handle (), name); 55 name_loc = GNUNET_GTK_from_utf8_to_loc ((char *) name);
55 GNUNET_FS_namespace_delete (ns, GNUNET_NO); 56 if (NULL != name_loc)
57 {
58 ns = GNUNET_FS_namespace_create (GNUNET_FS_GTK_get_fs_handle (), name_loc);
59 GNUNET_FS_namespace_delete (ns, GNUNET_NO);
60 GNUNET_free (name_loc);
61 }
56 gtk_widget_destroy (ad); 62 gtk_widget_destroy (ad);
57 g_object_unref (G_OBJECT (builder)); 63 g_object_unref (G_OBJECT (builder));
58} 64}