aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-03-19 06:15:07 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-03-19 06:15:07 +0000
commit94674c860c08f88199217e2cbe0bdc539038f022 (patch)
tree475d2998875a1d46d4e410f63f8aee1ad72746e8 /src/mainwindow.c
parenta68df591f791ccbabe308c673efa7073cce352c6 (diff)
update account and folder config files after creating new accounts.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2525 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index d488b187..c74dd928 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3897,17 +3897,21 @@ static void prefs_account_open_cb(MainWindow *mainwin, guint action,
static void new_account_cb(MainWindow *mainwin, guint action,
GtkWidget *widget)
{
+ PrefsAccount *ac;
+
if (compose_get_compose_list()) {
alertpanel_notice(_("Some composing windows are open.\n"
"Please close all the composing windows before editing the accounts."));
return;
}
- if (setup_account()) {
+ if ((ac = setup_account())) {
account_set_menu();
main_window_reflect_prefs_all();
account_set_missing_folder();
folderview_set(mainwin->folderview);
+ if (ac->folder)
+ folder_write_list();
}
}