aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-03-18 05:24:32 +0800
committerFederico Mena Quintero <federico@novell.com>2010-03-18 06:08:16 +0800
commit887d4979a8a0487c291e233e962eba0fb5a8f948 (patch)
treef45c7f55ff717475bbdd07c5c9db6be57f5da239 /capplet
parent0b9ba23872e0f0e683c59608215c9137b6bca2ef (diff)
downloadgsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar.gz
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar.bz2
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar.lz
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar.xz
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.tar.zst
gsoc2013-evolution-887d4979a8a0487c291e233e962eba0fb5a8f948.zip
Fallback to the offline case if we can't contact the server anyway
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-guess-servers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c
index 4e2ec27287..c6a1f71b45 100644
--- a/capplet/settings/mail-guess-servers.c
+++ b/capplet/settings/mail-guess-servers.c
@@ -311,10 +311,10 @@ out:
gboolean
mail_guess_servers(EmailProvider *provider)
{
- if (is_offline ())
- return guess_when_offline (provider);
+ if (is_online () && guess_when_online (provider))
+ return TRUE;
else
- return guess_when_online (provider);
+ return guess_when_offline (provider);
}
#ifdef TEST