aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-02-11 02:39:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-02-11 02:40:08 +0800
commit9b608beea94db9aeb58e584e868b13b70169d368 (patch)
tree78132f212297586da8f66bb70ea40c020b6969ef /modules
parent62a56d5d8f66fe0e47b6a2cda9be8e227922a29a (diff)
downloadgsoc2013-evolution-9b608beea94db9aeb58e584e868b13b70169d368.tar.gz
gsoc2013-evolution-9b608beea94db9aeb58e584e868b13b70169d368.tar.zst
gsoc2013-evolution-9b608beea94db9aeb58e584e868b13b70169d368.zip
Bug 604542 - Skip non-system rules when building quick search menu
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-view-private.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 125432c7f7..8f426e51d7 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -593,6 +593,8 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view)
context = E_SHELL_VIEW_GET_CLASS (shell_view)->search_context;
source = E_FILTER_SOURCE_DEMAND;
while ((rule = e_rule_context_next_rule (context, rule, source))) {
+ if (!rule->system)
+ continue;
g_assert (ii < MAIL_NUM_SEARCH_RULES);
priv->search_rules[ii++] = g_object_ref (rule);
}