projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e6ff1a7
)
* Fixes NB#100523, dimm send&receive when there are no defined accounts
author
Sergio Villar Senin
<svillar@igalia.com>
Thu, 5 Feb 2009 08:45:37 +0000
(08:45 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Thu, 5 Feb 2009 08:45:37 +0000
(08:45 +0000)
pmo-trunk-r7384
src/modest-ui-dimming-rules.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-dimming-rules.c
b/src/modest-ui-dimming-rules.c
index
1738cad
..
6d48e11
100644
(file)
--- 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);
/* 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"));
if (dimmed)
modest_dimming_rule_set_notification (rule, _("mcen_nc_no_email_acnts_defined"));