aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-05 05:44:58 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-05 05:44:58 +0000
commit2cc23a9152b9a3965cb026d63b5dceaf239a6b0d (patch)
tree4acc59231acc08d4d6d04c7c78a459ff211158c8 /src
parent4c3a7209bcca48c666265184ed53ce3d8ea6637c (diff)
don't update UI when new account setup is cancelled.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2457 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-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)