summaryrefslogtreecommitdiff
path: root/src/nautilus-properties-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-properties-window.c')
-rw-r--r--src/nautilus-properties-window.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 68fb0276d..a841eed97 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -686,8 +686,10 @@ update_name_field (NautilusPropertiesWindow *self)
{
const char *original_name = NULL;
g_autofree char *current_name = NULL;
+ gboolean use_label;
file = get_original_file (self);
+ use_label = !nautilus_file_can_rename (file);
if (file == NULL || nautilus_file_is_gone (file))
{
@@ -695,7 +697,14 @@ update_name_field (NautilusPropertiesWindow *self)
}
else
{
- current_name = nautilus_file_get_display_name (file);
+ if (use_label)
+ {
+ current_name = nautilus_file_get_display_name (file);
+ }
+ else
+ {
+ current_name = nautilus_file_get_edit_name (file);
+ }
}
/* If the file name has changed since the original name was stored,