From 3830bac1d6b0d1a3f73f629031b9cbcc9aa9abbd Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 9 Feb 2009 15:27:23 +0000 Subject: [PATCH] * Do not change to folders view if we still have 1 or more accounts pmo-trunk-r7434 --- src/hildon2/modest-hildon2-window-mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- 1.7.9.5