diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-23 21:27:59 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-23 21:27:59 +0300 |
commit | 2ee0187ed25fd1c4f2756a7d2ffd4b29bc9ad637 (patch) | |
tree | 9b686030c9d5e88f10a0d6ebdf971362612e3a5b /source/blender/editors/space_file | |
parent | 25bb5cb30c856d148c88385b8301e64290c0001c (diff) |
Fix T45882: Sudden shutdown if the filebrowser is part of the area layout.
There is no guarantee in sfile's listener that FileList has already been created...
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index eca573c27f0..97c2d75e469 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -308,7 +308,7 @@ static void file_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn) ED_area_tag_redraw(sa); break; case ND_SPACE_FILE_PREVIEW: - if (filelist_cache_previews_update(sfile->files)) { + if (sfile->files && filelist_cache_previews_update(sfile->files)) { ED_area_tag_refresh(sa); ED_area_tag_redraw(sa); } |