aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 6 insertions, 0 deletions
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);