aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 6280f654..d488b187 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3903,11 +3903,12 @@ static void new_account_cb(MainWindow *mainwin, guint action,
return;
}
- setup_account();
- account_set_menu();
- main_window_reflect_prefs_all();
- account_set_missing_folder();
- folderview_set(mainwin->folderview);
+ if (setup_account()) {
+ account_set_menu();
+ main_window_reflect_prefs_all();
+ account_set_missing_folder();
+ folderview_set(mainwin->folderview);
+ }
}
static void account_selector_menu_cb(GtkMenuItem *menuitem, gpointer data)