diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-05 02:42:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-05 02:42:49 +0400 |
commit | 185df0811c3f8bd8246e0f314def008dbaf02b95 (patch) | |
tree | 9433a7d50d75a1db35a326b5e6259ed4c1174a21 /source/blender/editors/space_file/file_ops.c | |
parent | 43764c30d20674c9c647f75d1cc7bad5901f54e5 (diff) |
fix for error when fixing crash in filesel poll function.
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-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) |