diff options
Diffstat (limited to 'source/blender/editors/screen/screen_edit.c')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index a0a2ede11ef..e942cfc8b1f 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1133,7 +1133,10 @@ void ED_area_exit(bContext *C, ScrArea *sa) ARegion *ar; if (sa->spacetype == SPACE_FILE) { - ED_fileselect_exit(C, (SpaceFile*)(sa) ? sa->spacedata.first : CTX_wm_space_data(C)); + SpaceLink *sl= sa->spacedata.first; + if(sl && sl->spacetype == SPACE_FILE) { + ED_fileselect_exit(C, (SpaceFile *)sl); + } } CTX_wm_area_set(C, sa); |