aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-paned-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-14 00:50:00 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:54 +0800
commit2bdd6077740de486821165e007b02f0a380f406e (patch)
tree119da2f6e8dbb96652802868324c38d3b90c0773 /mail/e-mail-paned-view.c
parentbdc73471827871c2f9a6f213c1cfa4e9839548a9 (diff)
downloadgsoc2013-evolution-2bdd6077740de486821165e007b02f0a380f406e.tar.gz
gsoc2013-evolution-2bdd6077740de486821165e007b02f0a380f406e.tar.zst
gsoc2013-evolution-2bdd6077740de486821165e007b02f0a380f406e.zip
Don't try to refresh or sync mail folders when offline.
Switching between mail folders in offline mode produces lots of annoying alerts for operations we shouldn't even be attempting.
Diffstat (limited to 'mail/e-mail-paned-view.c')
-rw-r--r--mail/e-mail-paned-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c
index f1d5cf1509..20a0980949 100644
--- a/mail/e-mail-paned-view.c
+++ b/mail/e-mail-paned-view.c
@@ -493,7 +493,9 @@ mail_paned_view_set_folder (EMailReader *reader,
if (folder == NULL)
goto exit;
- mail_refresh_folder (folder, NULL, NULL);
+ /* Only refresh the folder if we're online. */
+ if (e_shell_get_online (shell))
+ mail_refresh_folder (folder, NULL, NULL);
/* This is a one-time-only callback. */
if (MESSAGE_LIST (message_list)->cursor_uid == NULL &&