Fix T43864: Saving from top area in fullscreen changes wrong area into File Browser

We now always use the actual fullscreen area.
This commit is contained in:
Julian Eisel
2015-03-02 22:35:57 +01:00
parent d2b6c6fd9b
commit c271a9fa8b

View File

@@ -1678,9 +1678,14 @@ static int wm_handler_fileselect_do(bContext *C, ListBase *handlers, wmEventHand
sa = handler->op_area;
}
/* we already had a fullscreen here -> mark new space as a stacked fullscreen */
if (sa->full) {
/* ensure the first area becomes the file browser, because the second one is the small
* top (info-)area which might be too small (in fullscreens we have max two areas) */
if (sa->prev) {
sa = sa->prev;
}
ED_area_newspace(C, sa, SPACE_FILE); /* 'sa' is modified in-place */
/* we already had a fullscreen here -> mark new space as a stacked fullscreen */
sa->flag |= AREA_FLAG_STACKED_FULLSCREEN;
}
else {