fix for crash opening the file selector twice with multiple windows open (when the...
[blender.git] / source / blender / editors / screen / screen_edit.c
index eb41dcd147beb8e94b073953ac528259c04bdc23..721ce82335191ee5ead55307c178aa0d85643aa5 100644 (file)
@@ -1513,7 +1513,7 @@ void ED_screen_delete_scene(bContext *C, Scene *scene)
        unlink_scene(bmain, scene, newscene);
 }
 
-int ED_screen_full_newspace(bContext *C, ScrArea *sa, int type)
+ScrArea *ED_screen_full_newspace(bContext *C, ScrArea *sa, int type)
 {
        wmWindow *win= CTX_wm_window(C);
        bScreen *screen= CTX_wm_screen(C);
@@ -1538,7 +1538,7 @@ int ED_screen_full_newspace(bContext *C, ScrArea *sa, int type)
        
        ED_area_newspace(C, newsa, type);
        
-       return 1;
+       return newsa;
 }
 
 void ED_screen_full_prevspace(bContext *C, ScrArea *sa)