[evolution] Check whether message-list is filtered properly



commit 4cb878029e2fcaad06c669947f237228cf6702fc
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 12 13:22:40 2009 +0200

    Check whether message-list is filtered properly

 mail/message-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/message-list.c b/mail/message-list.c
index 24f4688..5972447 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -4366,7 +4366,7 @@ regen_list_done (struct _regen_list_msg *m)
 	if (GTK_WIDGET_VISIBLE (GTK_WIDGET (m->ml))) {
 		if (message_list_length (m->ml) <= 0) {
 			/* space is used to indicate no search too */
-			if (m->ml->search && strcmp (m->ml->search, " ") != 0)
+			if (m->ml->search && *m->ml->search && strcmp (m->ml->search, " ") != 0)
 				e_tree_set_info_message (m->ml->tree, _("No message satisfies your search criteria. Either clear search with Search->Clear menu item or change it."));
 			else if (m->ml->hidden)
 				e_tree_set_info_message (m->ml->tree, _("There are only hidden messages in this folder. Use View->Show Hidden Messages to show them."));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]