aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 c6a5604533..9ae62119a3 100644
--- a/capplet/settings/mail-guess-servers.c
+++ b/capplet/settings/mail-guess-servers.c
@@ -310,10 +310,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