[evolution] Bug #677604 - Critical warnings on evolution start
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #677604 - Critical warnings on evolution start
- Date: Mon, 2 Jul 2012 16:32:27 +0000 (UTC)
commit 56333d439bb9bf225d413a6308d2077288207315
Author: Milan Crha <mcrha redhat com>
Date: Mon Jul 2 18:32:00 2012 +0200
Bug #677604 - Critical warnings on evolution start
libemail-engine/e-mail-session.c | 5 ++++-
mail/e-mail-ui-session.c | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 4b4cdf2..881f680 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -505,7 +505,10 @@ mail_session_add_from_source (EMailSession *session,
/* Sanity checks. */
g_return_if_fail (uid != NULL);
- g_return_if_fail (backend_name != NULL);
+
+ /* send-only accounts */
+ if (!backend_name)
+ return;
/* Our own CamelSession.add_service() method will handle the
* resulting CamelService, so we don't need the return value. */
diff --git a/mail/e-mail-ui-session.c b/mail/e-mail-ui-session.c
index efbcd8f..ce21c96 100644
--- a/mail/e-mail-ui-session.c
+++ b/mail/e-mail-ui-session.c
@@ -492,7 +492,10 @@ mail_ui_session_source_changed_cb (ESourceRegistry *registry,
/* There should be a CamelStore with the same UID. */
service = camel_session_get_service (CAMEL_SESSION (session), uid);
- g_return_if_fail (CAMEL_IS_STORE (service));
+
+ /* send-only accounts */
+ if (!CAMEL_IS_STORE (service))
+ return;
/* Remove the store from the folder tree model and, if the
* source is still enabled, re-add it. Easier than trying
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]