diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-05 18:17:09 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-05 23:05:02 +0300 |
commit | 8858311463b7220eef383781d31dde31868fcd7c (patch) | |
tree | 8e065129ce3fa6979d5a44719444676fbdb4afa2 /source/blender/editors/space_file/space_file.c | |
parent | d31b2f854954838fb849b5b0be0011d792eecb43 (diff) |
Fix T58715: File Browser: Creating "New Folder" issues with too many existing folders in display.
Smotthscroll to edited entry was broken since filelisting was
rewritten to become async...
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index d857955d340..3b40c4a0798 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -260,19 +260,7 @@ static void file_refresh(const bContext *C, ScrArea *sa) } if (params->renamefile[0] != '\0') { - int idx = filelist_file_findpath(sfile->files, params->renamefile); - if (idx >= 0) { - FileDirEntry *file = filelist_file(sfile->files, idx); - if (file) { - filelist_entry_select_set(sfile->files, file, FILE_SEL_ADD, FILE_SEL_EDITING, CHECK_ALL); - } - } - BLI_strncpy(sfile->params->renameedit, sfile->params->renamefile, sizeof(sfile->params->renameedit)); - /* File listing is now async, do not clear renamefile if matching entry not found - * and dirlist is not finished! */ - if (idx >= 0 || filelist_is_ready(sfile->files)) { - params->renamefile[0] = '\0'; - } + file_params_renamefile_activate(sfile, params); } if (sfile->layout) { |