diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/message-list.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index a13f4f0b55..3878a64aa2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-06-18 Jeffrey Stedfast <fejj@ximian.com> + + * message-list.c (hide_save_state): Only save state if we have a + folder reference. Fixes some warnings about casting a NULL object + to a CamelFolder. + 2003-06-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (ml_tree_value_at): Don't display an unread icon diff --git a/mail/message-list.c b/mail/message-list.c index fd7d52fe00..8720de0820 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2592,7 +2592,10 @@ hide_save_state (MessageList *ml) { char *filename; FILE *out; - + + if (ml->folder == NULL) + return; + MESSAGE_LIST_LOCK(ml, hide_lock); filename = mail_config_folder_to_cachename(ml->folder, "hidestate-"); |