From: Sergio Villar Senin Date: Thu, 5 Feb 2009 08:45:37 +0000 (+0000) Subject: * Fixes NB#100523, dimm send&receive when there are no defined accounts X-Git-Tag: git_migration_finished~664 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=51dc5342d3ef03d765709740352c73707ea75a8e;hp=e6ff1a7f086db23419a7e796f97443c8381995b1 * Fixes NB#100523, dimm send&receive when there are no defined accounts pmo-trunk-r7384 --- diff --git a/src/modest-ui-dimming-rules.c b/src/modest-ui-dimming-rules.c index 1738cad..6d48e11 100644 --- a/src/modest-ui-dimming-rules.c +++ b/src/modest-ui-dimming-rules.c @@ -1872,7 +1872,11 @@ modest_ui_dimming_rules_on_send_receive (ModestWindow *win, gpointer user_data) /* Check dimmed rule */ account_name = modest_window_get_active_account (win); - dimmed = modest_account_mgr_account_is_busy (mgr, account_name); + + if (account_name) + dimmed = modest_account_mgr_account_is_busy (mgr, account_name); + else + dimmed = TRUE; if (dimmed) modest_dimming_rule_set_notification (rule, _("mcen_nc_no_email_acnts_defined"));