diff options
author | Parthasarathi Susarla <sparthasarathi@novell.com> | 2005-10-22 16:18:50 +0800 |
---|---|---|
committer | Parthasarathi Susarla <saps@src.gnome.org> | 2005-10-22 16:18:50 +0800 |
commit | 05601e86ebfc36093c8b2afb66cbe14cb45d6bd2 (patch) | |
tree | 75999f72fb1056b2501c12bab13b46556f0bdf30 /mail/mail-config.c | |
parent | a0ce7e9771be25292bf985a96db5603b34a68d9e (diff) | |
download | gsoc2013-evolution-05601e86ebfc36093c8b2afb66cbe14cb45d6bd2.tar.gz gsoc2013-evolution-05601e86ebfc36093c8b2afb66cbe14cb45d6bd2.tar.zst gsoc2013-evolution-05601e86ebfc36093c8b2afb66cbe14cb45d6bd2.zip |
Return valid transport, only if the account is enabled.
2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com>
* mail-config.c: (mail_config_get_default_account):
Return valid transport, only if the account is enabled.
2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com>
* em-composer-utils.c: (create_new_composer):
If the account corresponding to the fromuri is not enabled.
Then load the preferred account from the composer.
----------------------------------------------------------------------
svn path=/trunk/; revision=30555
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 7d3a876a47..6619b49b84 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -741,7 +741,7 @@ mail_config_get_default_transport (void) EIterator *iter; account = mail_config_get_default_account (); - if (account && account->transport && account->transport->url && account->transport->url[0]) + if (account && account->enabled && account->transport && account->transport->url && account->transport->url[0]) return account->transport; /* return the first account with a transport? */ @@ -749,7 +749,7 @@ mail_config_get_default_transport (void) while (e_iterator_is_valid (iter)) { account = (EAccount *) e_iterator_get (iter); - if (account->transport && account->transport->url && account->transport->url[0]) { + if (account->enabled && account->transport && account->transport->url && account->transport->url[0]) { g_object_unref (iter); return account->transport; |