diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-02-27 20:11:39 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-02-27 20:11:39 +0000 |
commit | 86a2e0076d0789247a28f370d16583ee4fc87f05 (patch) | |
tree | b3ae01afe554abbb0bc98787fef4cb0fe0be35ed /render/textplain.c | |
parent | b79dcabd41b48111733dd49fd68ab65f1b97347b (diff) | |
download | netsurf-86a2e0076d0789247a28f370d16583ee4fc87f05.tar.gz netsurf-86a2e0076d0789247a28f370d16583ee4fc87f05.tar.bz2 |
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
Diffstat (limited to 'render/textplain.c')
-rw-r--r-- | render/textplain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/textplain.c b/render/textplain.c index 2a31c6272..0879841fe 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -301,7 +301,8 @@ bool textplain_convert(struct content *c) parserutils_inputstream_destroy(stream); c->data.textplain.inputstream = NULL; - c->status = CONTENT_STATUS_DONE; + content_set_ready(c); + content_set_done(c); content_set_status(c, messages_get("Done")); return true; |