From 6ab2250096193a64ab791f165b12e73c854897e0 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 2 Jul 2010 06:31:30 +0000 Subject: 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 --- src/summaryview.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/summaryview.c') 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(); -- cgit v1.2.3