diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index c265c4ec1a7..0955d264ca8 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -1178,7 +1178,7 @@ static int file_directory_poll(bContext *C) { /* sfile->files can be NULL on file load */ SpaceFile *sfile= CTX_wm_space_file(C); - return ED_operator_file_active(C) && sfile->files && filelist_lib(sfile->files); + return ED_operator_file_active(C) && (sfile->files==NULL || filelist_lib(sfile->files)==NULL); } void FILE_OT_directory(struct wmOperatorType *ot) |