[evolution/express-offline-mail-guesser] Fallback to the offline case if we can't contact the server anyway



commit 9c4758cca53a49cd0aeb0d1c7d882ca41ee5228c
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Mar 17 15:24:32 2010 -0600

    Fallback to the offline case if we can't contact the server anyway
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 capplet/settings/mail-guess-servers.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c
index 4e2ec27..c6a1f71 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]