diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-02-11 02:39:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-02-11 02:40:08 +0800 |
commit | 9b608beea94db9aeb58e584e868b13b70169d368 (patch) | |
tree | 78132f212297586da8f66bb70ea40c020b6969ef /modules/mail/e-mail-shell-view-private.c | |
parent | 62a56d5d8f66fe0e47b6a2cda9be8e227922a29a (diff) | |
download | gsoc2013-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/mail/e-mail-shell-view-private.c')
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 2 |
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); } |