X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-hildon2-window-mgr.c;h=3dd75045945949ae4980bdfca8845567be3e81cc;hp=0471450b24fb3d7390667154c286975238d8d05b;hb=3830bac1d6b0d1a3f73f629031b9cbcc9aa9abbd;hpb=dde3fab7c2b70d823ced3b95565ac93820aa1ccb;ds=inline 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)); }