diff options
author | Milan Crha <mcrha@redhat.com> | 2014-02-05 23:18:21 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-02-05 23:18:21 +0800 |
commit | 337ec545e78e8806e2ffd26ce828bd2b41de9a3e (patch) | |
tree | e09f063eb4b60bff9109756690acb9940d08a0dd | |
parent | 964de8b003a4486448cf39199c84870971d64ffe (diff) | |
download | gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar.gz gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar.bz2 gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar.lz gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar.xz gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.tar.zst gsoc2013-evolution-337ec545e78e8806e2ffd26ce828bd2b41de9a3e.zip |
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
-rw-r--r-- | 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 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; |