aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-07-03 00:32:00 +0800
committerMilan Crha <mcrha@redhat.com>2012-07-03 00:32:00 +0800
commit56333d439bb9bf225d413a6308d2077288207315 (patch)
tree8989d461e1d13504dffd37188fbbb6438761154d /libemail-engine
parent8b7bd45b7cfcfa5c7002d88a933758c78661d1b4 (diff)
downloadgsoc2013-evolution-56333d439bb9bf225d413a6308d2077288207315.tar.gz
gsoc2013-evolution-56333d439bb9bf225d413a6308d2077288207315.tar.zst
gsoc2013-evolution-56333d439bb9bf225d413a6308d2077288207315.zip
Bug #677604 - Critical warnings on evolution start
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 4b4cdf2122..881f6801a8 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. */