[gthumb/gthumb-3-6] new library: always shows 'name already used' error



commit 0b3a417da5192a9f6c530f734adfa3e5098b4583
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]