X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-ui-dimming-rules.c;h=e8ba56601dd164e49c595b322452316ed48a6616;hp=113eea48236bdcd2b6f276fa799aae3f537fd046;hb=c48ace10ca6cf4b9d4d1cae8d0b9a66b07b9f8c5;hpb=597d09f3e99a5d657328472afab0f64e0e0e0ebb 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"));