From: Sergio Villar Senin Date: Tue, 27 Jan 2009 15:33:06 +0000 (+0000) Subject: * Fixes NB#99400, do not dimm Send&Receive if there is 1 account X-Git-Tag: git_migration_finished~709 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c48ace10ca6cf4b9d4d1cae8d0b9a66b07b9f8c5 * Fixes NB#99400, do not dimm Send&Receive if there is 1 account pmo-trunk-r7318 --- diff --git a/src/modest-ui-dimming-rules.c b/src/modest-ui-dimming-rules.c index 113eea4..e8ba566 100644 --- a/src/modest-ui-dimming-rules.c +++ b/src/modest-ui-dimming-rules.c @@ -41,7 +41,7 @@ #include "modest-tny-msg.h" #include "modest-tny-mime-part.h" #include "modest-text-utils.h" -#include +#include "modest-address-book.h" #include #include #include @@ -1877,13 +1877,13 @@ modest_ui_dimming_rules_on_send_receive_all (ModestWindow *win, gpointer user_da { ModestDimmingRule *rule = NULL; gboolean dimmed = FALSE; - + g_return_val_if_fail (MODEST_IS_DIMMING_RULE (user_data), FALSE); rule = MODEST_DIMMING_RULE (user_data); /* Check dimmed rule */ GSList *account_names = modest_account_mgr_account_names (modest_runtime_get_account_mgr (), TRUE); - if (g_slist_length (account_names) <= 1) + if (g_slist_length (account_names) < 1) dimmed = TRUE; if (dimmed) modest_dimming_rule_set_notification (rule, _("mcen_nc_no_email_acnts_defined"));