fix for header not updating with an error report when a job finishes.

was reported as a reply to [#32537], but is a different issue then the original report.
This commit is contained in:
Campbell Barton 2012-09-28 04:00:06 +00:00
parent e1897f8c4a
commit d732e05740
3 changed files with 11 additions and 1 deletions

View File

@ -155,6 +155,7 @@ struct wmEventHandler *WM_event_add_dropbox_handler(ListBase *handlers, ListBase
/* mouse */
void WM_event_add_mousemove(struct bContext *C);
void WM_event_add_mousemove_window(struct wmWindow *window);
int WM_modal_tweak_exit(struct wmEvent *evt, int tweak_event);
/* notifiers */

View File

@ -2472,6 +2472,11 @@ void WM_event_add_mousemove(bContext *C)
window->addmousemove = 1;
}
void WM_event_add_mousemove_window(wmWindow *window)
{
window->addmousemove = 1;
}
/* for modal callbacks, check configuration for how to interpret exit with tweaks */
int WM_modal_tweak_exit(wmEvent *evt, int tweak_event)
{

View File

@ -492,7 +492,11 @@ void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt)
WM_event_add_notifier(C, wm_job->endnote, NULL);
WM_event_add_notifier(C, NC_WM | ND_JOB, NULL);
/* so the info header updates on job end even if the mouse doesn't move.
* a rather annoying/obscure bug, see [#32537] (second reply) */
WM_event_add_mousemove_window(wm_job->win);
/* new job added for wm_job? */
if (wm_job->customdata) {
// printf("job restarted with new data %s\n", wm_job->name);