diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-03-27 15:14:51 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-03-27 15:14:51 +0300 |
commit | 9cddf0c69a37700c20d7d4f47f7f6f7f4aa5aa0e (patch) | |
tree | bcb76b8fa0363e1b8f8fd21ea9ba31a1491acdd6 /source/blender/editors/space_file/file_ops.c | |
parent | aa79b9f5888df800c48662f269cb582a89da9f85 (diff) |
Fix [#21765] File-Dialog: "New Directory" gives no visual feedback
- was missing to clear the filelist which was previously done in the notifier (removed from there with the new thumbnail job handling).
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index ecbac050712..074e8b6c81b 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -711,8 +711,8 @@ void FILE_OT_next(struct wmOperatorType *ot) int file_next_exec(bContext *C, wmOperator *unused) { SpaceFile *sfile= CTX_wm_space_file(C); - if(sfile->params) { - if (!sfile->folders_next) + if(sfile->params) { + if (!sfile->folders_next) sfile->folders_next = folderlist_new(); folderlist_pushdir(sfile->folders_prev, sfile->params->dir); @@ -777,6 +777,7 @@ int file_directory_new_exec(bContext *C, wmOperator *op) /* now remember file to jump into editing */ BLI_strncpy(sfile->params->renamefile, name, FILE_MAXFILE); + ED_fileselect_clear(C, sfile); WM_event_add_notifier(C, NC_SPACE|ND_SPACE_FILE_LIST, NULL); return OPERATOR_FINISHED; |