diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-21 13:17:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-21 13:17:14 +0400 |
commit | 2379af27d10e21c5d471884ee2f78fba62f8534c (patch) | |
tree | 543da0c4711f544cb6f1b9a2b560ec5fee347efc /source/blender/editors/space_file/file_ops.c | |
parent | e2e0a864a8c46f4ed836ea7e8fa292276a2137b2 (diff) |
tested running the cheat-sheet, found a number of segfaults
pressing escape in the outliner was also crashing (somehow it tried to exit the file selector)
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 70d8de7d509..7839cf5bf4b 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -532,7 +532,7 @@ int file_operator_poll(bContext *C) int poll = ED_operator_file_active(C); SpaceFile *sfile= CTX_wm_space_file(C); - if (!sfile->op) poll= 0; + if (!sfile || !sfile->op) poll= 0; return poll; } |