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:
597d09f
)
* Fixes NB#99400, do not dimm Send&Receive if there is 1 account
author
Sergio Villar Senin
<svillar@igalia.com>
Tue, 27 Jan 2009 15:33:06 +0000
(15:33 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Tue, 27 Jan 2009 15:33:06 +0000
(15:33 +0000)
pmo-trunk-r7318
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
113eea4
..
e8ba566
100644
(file)
--- 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 "modest-tny-msg.h"
#include "modest-tny-mime-part.h"
#include "modest-text-utils.h"
-#include <modest-address-book.h>
+#include "modest-address-book.h"
#include <widgets/modest-attachments-view.h>
#include <modest-runtime.h>
#include <tny-simple-list.h>
#include <widgets/modest-attachments-view.h>
#include <modest-runtime.h>
#include <tny-simple-list.h>
@@
-1877,13
+1877,13
@@
modest_ui_dimming_rules_on_send_receive_all (ModestWindow *win, gpointer user_da
{
ModestDimmingRule *rule = NULL;
gboolean dimmed = FALSE;
{
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);
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"));
dimmed = TRUE;
if (dimmed)
modest_dimming_rule_set_notification (rule, _("mcen_nc_no_email_acnts_defined"));