aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-06 05:20:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-06 05:20:59 +0800
commitce3ae8856492d9654f08a0db8b949e2e9a9e1a6f (patch)
treef6982ed4be0258d3fb0a06b37f4c34223a29204f /mail/mail-mt.c
parent01fb066a57ffdddeeae9b333f5bcbdcd169f5c75 (diff)
downloadgsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar.gz
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar.bz2
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar.lz
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar.xz
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.tar.zst
gsoc2013-evolution-ce3ae8856492d9654f08a0db8b949e2e9a9e1a6f.zip
If we are not in interactive mode, don't display error dialogs.
2002-08-05 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (mail_msg_check_error): If we are not in interactive mode, don't display error dialogs. * component-factory.c (interactive_cb): Updated to use the new function mail_session_set_interactive(). (owner_unset_cb): Same here. * mail-session.c (mail_session_set_interactive): Renamed from mail_session_enable_interaction(). (mail_session_get_interactive): New function to get the interactive state. svn path=/trunk/; revision=17702
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 0a3243a894..cf552dbdb5 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -30,6 +30,7 @@
#include "mail-config.h"
#include "camel/camel-url.h"
+#include "mail-session.h"
#include "mail-mt.h"
#include "component-factory.h"
@@ -231,13 +232,17 @@ void mail_msg_check_error(void *msg)
char *what = NULL;
char *text;
GnomeDialog *gd;
-
+
#ifdef MALLOC_CHECK
checkmem(m);
checkmem(m->cancel);
checkmem(m->priv);
#endif
-
+
+ /* don't report any errors if we are not in interactive mode */
+ if (!mail_session_get_interactive ())
+ return;
+
if (!camel_exception_is_set(&m->ex)
|| m->ex.id == CAMEL_EXCEPTION_USER_CANCEL)
return;