From 9cf51227979c84a9ed74c339290c3f65f0d58c4f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Mar 2007 22:08:57 +0000 Subject: Content handlers should not call warn_user - they should broadcast the error using content_broadcast and leave it to the content owner(s) to decide what to do about it. Only use warn_user for top-level contents. svn path=/trunk/netsurf/; revision=3204 --- css/css.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'css') diff --git a/css/css.c b/css/css.c index ac988d321..3ba3da872 100644 --- a/css/css.c +++ b/css/css.c @@ -404,7 +404,6 @@ bool css_convert(struct content *c, int width, int height) msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); - warn_user("NoMemory", 0); return false; } @@ -445,7 +444,6 @@ bool css_convert(struct content *c, int width, int height) if (param.memory_error) { msg_data.error = messages_get("NoMemory"); content_broadcast(c, CONTENT_MSG_ERROR, msg_data); - warn_user("NoMemory", 0); return false; } -- cgit v1.2.3