From 118974d6eed6450cd5e5343c2e8654fcc30b2872 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 30 Jul 2007 13:35:02 +0000 Subject: [PATCH] * src/maemo/modest-main-window.c: * Show only "Send&Receive/All" option when there are 2 or more accounts. The older condition was "there are 1 or more" (fixes NB#59238). pmo-trunk-r2850 --- src/maemo/modest-main-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maemo/modest-main-window.c b/src/maemo/modest-main-window.c index 0ab62cf..045e76b 100644 --- a/src/maemo/modest-main-window.c +++ b/src/maemo/modest-main-window.c @@ -801,7 +801,7 @@ modest_main_window_on_show (GtkWidget *self, gpointer user_data) accounts = modest_account_mgr_account_names (modest_runtime_get_account_mgr (), TRUE); send_receive_all = gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveAllMenu"); - gtk_action_set_visible (send_receive_all, g_slist_length (accounts)); + gtk_action_set_visible (send_receive_all, g_slist_length (accounts) > 1); modest_account_mgr_free_account_names (accounts); } } -- 1.7.9.5