From 5f737e09fe3132cee4322b52332fc83add921d99 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 24 Oct 2002 01:50:06 +0000 Subject: Only perform the search if it is either a clear or advanced search. 2002-10-23 Jeffrey Stedfast * folder-browser.c (folder_browser_query_changed): Only perform the search if it is either a clear or advanced search. svn path=/trunk/; revision=18422 --- mail/folder-browser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index f0cbb7eef5..ab9a00d66c 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1221,7 +1221,11 @@ folder_browser_search_do_search (ESearchBar *esb, FolderBrowser *fb) static void folder_browser_query_changed (ESearchBar *esb, FolderBrowser *fb) { - folder_browser_search_do_search (esb, fb); + int id; + + id = e_search_bar_get_item_id (esb); + if (id == E_SEARCHBAR_CLEAR_ID || id == E_FILTERBAR_ADVANCED_ID) + folder_browser_search_do_search (esb, fb); } void -- cgit