aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-02-27 19:07:37 +0800
committerMilan Crha <mcrha@redhat.com>2012-02-27 19:07:37 +0800
commit8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0 (patch)
tree5dcfabe52780f2660608236f1128c8aebfc58cfd /mail
parentb06f0397f15033cd7fb3de4a4b74b5f843e4a813 (diff)
downloadgsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar.gz
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar.bz2
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar.lz
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar.xz
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.tar.zst
gsoc2013-evolution-8d26722fa64a6c9861335ac0d3ef904b6bdfdeb0.zip
Hides errors on message load
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-reader.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index b471e981cb..132ee43259 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2625,7 +2625,7 @@ mail_reader_message_loaded_cb (CamelFolder *folder,
/* If the user picked a different message in the time it took
* to fetch this message, then don't bother rendering it. */
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
- g_error_free (error);
+ g_clear_error (&error);
goto exit;
}
@@ -2644,6 +2644,20 @@ mail_reader_message_loaded_cb (CamelFolder *folder,
exit:
priv->restoring_message_selection = FALSE;
+ if (error) {
+ EPreviewPane *preview_pane;
+ EWebView *web_view;
+
+ preview_pane = e_mail_reader_get_preview_pane (reader);
+ web_view = e_preview_pane_get_web_view (preview_pane);
+
+ e_alert_submit (
+ E_ALERT_SINK (web_view),
+ "mail:no-retrieve-message",
+ error->message, NULL);
+ }
+
+ g_clear_error (&error);
mail_reader_closure_free (closure);