WM: show file selector errors in header

Was too easy to miss errors from the file selector, now show in the info header.
This commit is contained in:
Campbell Barton 2016-01-11 11:29:08 +11:00
parent 24b29873ec
commit 2c8ca79683
1 changed files with 3 additions and 0 deletions

View File

@ -1866,6 +1866,9 @@ static int wm_handler_fileselect_do(bContext *C, ListBase *handlers, wmEventHand
/* add reports to the global list, otherwise they are not seen */
BLI_movelisttolist(&CTX_wm_reports(C)->list, &handler->op->reports->list);
/* more hacks, since we meddle with reports, banner display doesn't happen automatic */
WM_report_banner_show(C);
CTX_wm_window_set(C, win_prev);
CTX_wm_area_set(C, area_prev);
CTX_wm_region_set(C, ar_prev);