aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-02 06:31:30 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-02 06:31:30 +0000
commit6ab2250096193a64ab791f165b12e73c854897e0 (patch)
tree6f7a5cfc4a92b9db80597b60b5e8bf911939f9ed /src/summaryview.c
parent3f6d55a10a2425aaf7936574686701dddaf3fc4b (diff)
display error if a connection to IMAP/News server failed when opening a folder.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2598 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 89af50c4..67b47e28 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2009 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2010 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -912,6 +912,14 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
STATUSBAR_PUSH(summaryview->mainwin, _("Done."));
main_window_cursor_normal(summaryview->mainwin);
+
+ if (prefs_common.online_mode) {
+ if (FOLDER_IS_REMOTE(item->folder) &&
+ REMOTE_FOLDER(item->folder)->session == NULL) {
+ alertpanel_error(_("Could not establish a connection to the server."));
+ }
+ }
+
summary_unlock(summaryview);
inc_unlock();