Fix #28504: lib linking errors were not shown when opening a file from

the splash screen.
This commit is contained in:
Brecht Van Lommel 2011-09-05 13:19:19 +00:00
parent 919bd181b7
commit d91587752c

@ -437,9 +437,18 @@ static void wm_operator_print(bContext *C, wmOperator *op)
static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int popup)
{
if(popup)
if(op->reports->list.first)
if(popup) {
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);
CTX_wm_window_set(C, win_prev);
}
}
if(retval & OPERATOR_FINISHED) {
if(G.f & G_DEBUG)