Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-22 09:32:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-22 09:32:39 +0400
commit1632db7b71b4f15edf35187e46e0a53d3733aab6 (patch)
tree20ceea5870ae4bc6a7c5341b1cb926939fc6e7ab /source/blender/editors/space_file/file_ops.c
parent916085247ac4a6d10d8597b1bf7b847903102ce4 (diff)
bugfix [#23784] Renaming files broken in the file selector
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 2319b1507af..e9764a2d36a 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1169,6 +1169,8 @@ int file_rename_exec(bContext *C, wmOperator *op)
if ( (0<=idx) && (idx<numfiles) ) {
struct direntry *file= filelist_file(sfile->files, idx);
file->flags |= EDITING;
+ BLI_strncpy(sfile->params->renameedit, file->relname, FILE_MAXFILE);
+ sfile->params->renamefile[0]= '\0';
}
ED_area_tag_redraw(sa);
}