[evolution] Fix typos in a logic of a "mail:ask-quick-offline" user prompt



commit 337ec545e78e8806e2ffd26ce828bd2b41de9a3e
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 5 16:18:21 2014 +0100

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 3e89447..60db3cc 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;


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