From 337ec545e78e8806e2ffd26ce828bd2b41de9a3e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 5 Feb 2014 16:18:21 +0100 Subject: Fix typos in a logic of a "mail:ask-quick-offline" user prompt Two problems: a) the returned value of the prompt was checked reverted b) the messages were downloaded anyway, without setting CamelSession offline --- mail/e-mail-backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index 3e89447ba4..60db3cc55a 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -161,8 +161,10 @@ mail_backend_prepare_for_offline_cb (EShell *shell, synchronize = em_utils_prompt_user ( window, NULL, "mail:ask-quick-offline", NULL); - if (synchronize) + if (!synchronize) { e_shell_backend_cancel_all (shell_backend); + camel_session_set_online (CAMEL_SESSION (session), FALSE); + } if (!e_activity_get_cancellable (activity)) { GCancellable *cancellable; -- cgit v1.2.3