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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-25 13:28:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-25 13:28:52 +0400
commit16ba37702622ab7995b52ded156051199108873c (patch)
tree087b681b508fa544d3703827b2145f71c3ed85b4 /source/blender/editors/screen
parentbd80f19c2221462bca55d7bdae426fb628775c67 (diff)
fix for a crash with the following steps.
- open file sel - save user defaults - new file - ctrl+u (crash) wasn't type checking the space file, passed info space to ED_fileselect_exit().
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_edit.c5
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);