diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-29 22:15:46 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-29 22:15:46 +0400 |
commit | da14738624117d54aa088a192e72b9270cdcf5d9 (patch) | |
tree | 8ef66e4d100351fc3b81fa3018a8527f01b9daea /source/blender/editors/space_file | |
parent | 785bf413f30d70da9344caa8291726e0c1b247b9 (diff) |
2.5
Two bugfixes, reported by Sebastian Skejo in IRC:
- File operator poll wasn't secure, search for it crashed
- Knife tool depends on having view3d context, fixed poll for it
Diffstat (limited to 'source/blender/editors/space_file')
-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 65a46d6514d..a217dbe9f57 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -933,7 +933,7 @@ int file_delete_poll(bContext *C) SpaceFile *sfile= CTX_wm_space_file(C); struct direntry* file; - if (sfile->params) { + if (sfile && sfile->params) { if (sfile->params->active_file < 0) { poll= 0; } else { |