diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 05:44:58 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 05:44:58 +0000 |
commit | 2cc23a9152b9a3965cb026d63b5dceaf239a6b0d (patch) | |
tree | 4acc59231acc08d4d6d04c7c78a459ff211158c8 | |
parent | 4c3a7209bcca48c666265184ed53ce3d8ea6637c (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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/mainwindow.c | 11 |
2 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,9 @@ 2010-02-05 + * src/mainwindow.c: new_account_cb(): don't update UI when cancelled. + +2010-02-05 + * src/setup.c: modified messages. 2010-02-05 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) |