From 86a2e0076d0789247a28f370d16583ee4fc87f05 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 27 Feb 2011 20:11:39 +0000 Subject: Fix bug #3194007: stop emitting duplicate READY/DONE events. * Make content handlers responsible for setting READY/DONE state & emitting events. * Stop content_convert doing this when there is a registered convert function for the content type. svn path=/trunk/netsurf/; revision=11850 --- image/mng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'image/mng.c') diff --git a/image/mng.c b/image/mng.c index 4ebba304d..1674dd033 100644 --- a/image/mng.c +++ b/image/mng.c @@ -330,7 +330,8 @@ bool nsmng_convert(struct content *c) content__set_title(c, title); c->size += c->width * c->height * 4; - c->status = CONTENT_STATUS_DONE; + content_set_ready(c); + content_set_done(c); /* Done: update status bar */ content_set_status(c, ""); -- cgit v1.2.3