From 9e6c10a18be76719fbba41c36c61abc9c1542710 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 29 Oct 2000 20:41:55 +0000 Subject: Don't try to regenerate the message list if there is no folder. (The * message-list.c (mail_do_regenerate_messagelist): Don't try to regenerate the message list if there is no folder. (The Bonobo UI code will call this as the callback for the "Threaded View" command.) svn path=/trunk/; revision=6255 --- mail/message-list.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/message-list.c') diff --git a/mail/message-list.c b/mail/message-list.c index ee2d3694e9..9c44d0a8df 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1827,6 +1827,12 @@ void mail_do_regenerate_messagelist (MessageList *list, const gchar *search) { regenerate_messagelist_input_t *input; + /* This gets called on empty folder-browsers by the bonobo ui + * callback for threaded view. + */ + if (!list->folder) + return; + input = g_new (regenerate_messagelist_input_t, 1); input->ml = list; input->search = g_strdup (search); -- cgit v1.2.3