[gthumb] new library: always shows 'name already used' error
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] new library: always shows 'name already used' error
- Date: Sat, 20 Apr 2019 16:31:29 +0000 (UTC)
commit 1b4c6a4aeae97ac43d13ec41173d608b0d8dfb71
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Apr 20 18:10:39 2019 +0200
new library: always shows 'name already used' error
Fixes https://gitlab.gnome.org/GNOME/gthumb/issues/43
extensions/catalogs/dlg-add-to-catalog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extensions/catalogs/dlg-add-to-catalog.c b/extensions/catalogs/dlg-add-to-catalog.c
index 3e2945a8..67d1b3d7 100644
--- a/extensions/catalogs/dlg-add-to-catalog.c
+++ b/extensions/catalogs/dlg-add-to-catalog.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]