From a59045b982e26e534455f33437b1421ab86270a6 Mon Sep 17 00:00:00 2001
From: Paolo Bacchilega <paobac@src.gnome.org>
Date: Sat, 1 Jul 2017 19:27:32 +0200
Subject: rename folder: use the display name if the edit name is not available
gthumb/gth-folder-tree.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gthumb/gth-folder-tree.c b/gthumb/gth-folder-tree.c
index bcec3f2..606db85 100644
--- gthumb/gth-folder-tree.c
+++ gthumb/gth-folder-tree.c
@@ -1887,6 +1887,7 @@ gth_folder_tree_start_editing (GthFolderTree *folder_tree,
if (! gth_folder_tree_get_iter (folder_tree, file, &iter, NULL))
@@ -1914,8 +1915,11 @@ gth_folder_tree_start_editing (GthFolderTree *folder_tree,
COLUMN_FILE_DATA, &file_data,
- gtk_entry_set_text (GTK_ENTRY (gth_request_dialog_get_entry (GTH_REQUEST_DIALOG (dialog))),
- g_file_info_get_edit_name (file_data->info));
+ edit_name = g_file_info_get_edit_name (file_data->info);
+ edit_name = g_file_info_get_display_name (file_data->info);
+ gtk_entry_set_text (GTK_ENTRY (gth_request_dialog_get_entry (GTH_REQUEST_DIALOG (dialog))), edit_name);
gtk_widget_show (dialog);