Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-05 02:42:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-05 02:42:49 +0400
commit185df0811c3f8bd8246e0f314def008dbaf02b95 (patch)
tree9433a7d50d75a1db35a326b5e6259ed4c1174a21 /source
parent43764c30d20674c9c647f75d1cc7bad5901f54e5 (diff)
fix for error when fixing crash in filesel poll function.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_file/file_ops.c2
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)