From 77c5ed36148a3a83099ecc17bf48ad8d5068773a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 3 May 2004 18:59:05 +0000 Subject: Fix for bug #57968 2004-05-03 Jeffrey Stedfast Fix for bug #57968 * message-list.c (message_list_set_folder): Save the tree/hide state of the current folder before clearing the message-list. (message_list_set_folder): Note that a new folder has just been set (now needed by the regen code to tell whether or not it should save the tree state before clearing the tree). (message_list_destroy): Save the tree/hide state before destroying the message-info's, not after. (regen_list_regened): If the regen is being performed in response to a message_list_set_folder, don't save the tree state before clearing the tree or we'll clobber the real state with bogus data. svn path=/trunk/; revision=25767 --- mail/message-list.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index 7a7ccfa78a..c4fed0537b 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -108,6 +108,9 @@ struct _MessageList { /* Current search string, or %NULL */ char *search; + /* are we regenerating the message_list because set_folder was just called? */ + guint just_set_folder : 1; + /* Are we displaying threaded view? */ guint threaded : 1; -- cgit v1.2.3