From: Sergio Villar Senin Date: Mon, 9 Feb 2009 15:27:23 +0000 (+0000) Subject: * Do not change to folders view if we still have 1 or more accounts X-Git-Tag: git_migration_finished~631 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=3830bac1d6b0d1a3f73f629031b9cbcc9aa9abbd;ds=sidebyside * Do not change to folders view if we still have 1 or more accounts pmo-trunk-r7434 --- diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index 0471450..3dd7504 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -726,7 +726,9 @@ on_account_removed (TnyAccountStore *acc_store, stack = hildon_window_stack_get_default (); current_top = (ModestWindow *) hildon_window_stack_peek (stack); - if (current_top && MODEST_IS_ACCOUNTS_WINDOW (current_top)) + if (current_top && + MODEST_IS_ACCOUNTS_WINDOW (current_top) && + !modest_account_mgr_has_accounts (modest_runtime_get_account_mgr (), TRUE)) create_folders_view (MODEST_WINDOW_MGR (user_data)); }