Fix crash clicking Render button in render layer compositing node. Actually

this crash could happen in other situations too, problem was a bug in the
jobs system. A job could be suspended, and the operator would stop before
the job was actually done since it was not marked as running.
This commit is contained in:
Brecht Van Lommel 2012-04-26 17:48:07 +00:00
parent 7e5c02672a
commit 73a6ae7106

@ -173,10 +173,12 @@ int WM_jobs_test(wmWindowManager *wm, void *owner)
{
wmJob *steve;
/* job can be running or about to run (suspended) */
for (steve = wm->jobs.first; steve; steve = steve->next)
if (steve->owner == owner)
if (steve->running)
if (steve->running || steve->suspended)
return 1;
return 0;
}