From 6ae4dd6e2efd44330f723f4c46302b189653f3fb Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 19 Jul 2006 17:29:32 +0000 Subject: [PATCH] Only need to set "checking" state if we have pop or imap. SVN revision: 24052 --- e_mod_main.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/e_mod_main.c b/e_mod_main.c index ef9b8d0..8290b51 100644 --- a/e_mod_main.c +++ b/e_mod_main.c @@ -545,8 +545,6 @@ _mail_cb_check (void *data) if (!ci->boxes) return 1; - edje_object_signal_emit (inst->mail->mail_obj, "check_mail", ""); - for (l = ci->boxes; l; l = l->next) { Config_Box *cb; @@ -568,11 +566,15 @@ _mail_cb_check (void *data) break; } } - if (have_imap) - _mail_imap_check_mail (inst); - if (have_pop) - _mail_pop_check_mail (inst); - return 1; + + if ((have_imap) || (have_pop)) + edje_object_signal_emit (inst->mail->mail_obj, "check_mail", ""); + + if (have_imap) + _mail_imap_check_mail (inst); + if (have_pop) + _mail_pop_check_mail (inst); + return 1; } void