Commit 1b4c6a4a authored by Paolo Bacchilega's avatar Paolo Bacchilega

new library: always shows 'name already used' error

Fixes #43
parent 3321208a
......@@ -521,7 +521,7 @@ new_library_dialog_response_cb (GtkWidget *dialog,
file_source = gth_main_get_file_source (parent);
gio_parent = gth_file_source_to_gio_file (file_source, parent);
gio_file = _g_directory_create_unique (gio_parent, name, "", &error);
gio_file = g_file_get_child_for_display_name (gio_parent, name, &error);
if ((gio_file != NULL) && g_file_make_directory (gio_file, NULL, &error)) {
GFile *file;
GList *list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment