[evolution] Bug #621903 - Crash on HTML message print preview



commit b62f965b04b036f3b9d647a339852bfdd3c79e12
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 24 17:57:48 2010 +0200

    Bug #621903 - Crash on HTML message print preview

 widgets/misc/e-web-view.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index d489a7a..d484ce9 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -192,6 +192,12 @@ web_view_request_check_for_error (EWebViewRequest *request,
 	if (error == NULL)
 		return FALSE;
 
+	if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
+		/* use this error, but do not close the stream */
+		g_error_free (error);
+		return TRUE;
+	}
+
 	/* XXX Should we log errors that are not cancellations? */
 
 	html = GTK_HTML (request->web_view);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]