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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user