From fe15c797a036820ac4b5e8cf232ad0a559fcd06b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 17 Dec 2009 18:17:21 +0100 Subject: Bug #603184 - Various problems with search box in folders --- modules/mail/e-mail-shell-view.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c index a3dbbed7ba..7e1d00393d 100644 --- a/modules/mail/e-mail-shell-view.c +++ b/modules/mail/e-mail-shell-view.c @@ -160,6 +160,9 @@ mail_shell_view_execute_search (EShellView *shell_view) text = e_shell_content_get_search_text (shell_content); if (value == MAIL_SEARCH_ADVANCED || text == NULL || *text == '\0') { + if (value != MAIL_SEARCH_ADVANCED) + e_shell_content_set_search_rule (shell_content, NULL); + query = e_shell_content_get_search_rule_as_string (shell_content); if (!query) -- cgit