Fix #28504: lib linking errors were not shown when opening a file from
the splash screen.
This commit is contained in:
@@ -437,10 +437,19 @@ static void wm_operator_print(bContext *C, wmOperator *op)
|
|||||||
|
|
||||||
static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int popup)
|
static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int popup)
|
||||||
{
|
{
|
||||||
if(popup)
|
if(popup) {
|
||||||
if(op->reports->list.first)
|
if(op->reports->list.first) {
|
||||||
|
/* FIXME, temp setting window, see other call to uiPupMenuReports for why */
|
||||||
|
wmWindow *win_prev= CTX_wm_window(C);
|
||||||
|
if(win_prev==NULL)
|
||||||
|
CTX_wm_window_set(C, CTX_wm_manager(C)->windows.first);
|
||||||
|
|
||||||
uiPupMenuReports(C, op->reports);
|
uiPupMenuReports(C, op->reports);
|
||||||
|
|
||||||
|
CTX_wm_window_set(C, win_prev);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(retval & OPERATOR_FINISHED) {
|
if(retval & OPERATOR_FINISHED) {
|
||||||
if(G.f & G_DEBUG)
|
if(G.f & G_DEBUG)
|
||||||
wm_operator_print(C, op); /* todo - this print may double up, might want to check more flags then the FINISHED */
|
wm_operator_print(C, op); /* todo - this print may double up, might want to check more flags then the FINISHED */
|
||||||
|
|||||||
Reference in New Issue
Block a user