diff options
author | Robert Guetzkow <rjg> | 2019-11-26 20:46:31 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-11-26 20:54:24 +0300 |
commit | 98dfb4dd1c8c64d1ead6ad166fad02ca36c35b1e (patch) | |
tree | e1a442173ce0579235dc7a81f99a4fed3f9a8398 /source/blender/editors/space_file/file_ops.c | |
parent | bf9c2e6fde34c0cb9029e33025627c743fca50b6 (diff) |
Allow deletion of directories in the file browser
This diff allows to delete directories in the file browser. The commit https://developer.blender.org/rB8825250f5a85c0c16e74ed144dd2b4a7d752042f did not include this feature.
Reviewed By: Severin
Differential Revision: https://developer.blender.org/D6083
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 3cdcc07f081..b26769f2118 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -2468,7 +2468,7 @@ static bool file_delete_poll(bContext *C) poll = 0; } for (i = 0; i < numfiles; i++) { - if (filelist_entry_select_index_get(sfile->files, i, CHECK_FILES)) { + if (filelist_entry_select_index_get(sfile->files, i, CHECK_ALL)) { num_selected++; } } @@ -2498,7 +2498,7 @@ int file_delete_exec(bContext *C, wmOperator *op) bool report_error = false; errno = 0; for (i = 0; i < numfiles; i++) { - if (filelist_entry_select_index_get(sfile->files, i, CHECK_FILES)) { + if (filelist_entry_select_index_get(sfile->files, i, CHECK_ALL)) { file = filelist_file(sfile->files, i); BLI_make_file_string(BKE_main_blendfile_path(bmain), str, sfile->params->dir, file->relpath); if (BLI_delete_soft(str, &error_message) != 0 || BLI_exists(str)) { |