aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-14 09:12:33 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-14 09:12:33 +0000
commitf985d12decd4b43be0961afc38697970468f9042 (patch)
tree130be403d41bfb80054a9729ce349228fb84197f /src/mainwindow.c
parent4864d951f52cf49cad59c0e8721d290345d275c6 (diff)
disconnect all current sessions of remote folders when going offline.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2754 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index c71b3ac2..2eb2e6b0 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3089,6 +3089,7 @@ static void online_switch_clicked(GtkWidget *widget, gpointer data)
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem),
TRUE);
inc_autocheck_timer_remove();
+ folder_remote_folder_destroy_all_sessions();
} else {
prefs_common.online_mode = TRUE;
gtk_widget_hide(mainwin->offline_pixmap);