aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-06-19 02:01:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-06-19 02:01:54 +0800
commit1d3678768f798aaf12a05c682fc8e24450eaf423 (patch)
tree5cb5c4adeb3dbb5a000afe851f23073ba79818e6 /mail
parent13f8e60e3a60f9f55bd1b06dc78574b1840b3922 (diff)
downloadgsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar.gz
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar.bz2
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar.lz
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar.xz
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.tar.zst
gsoc2013-evolution-1d3678768f798aaf12a05c682fc8e24450eaf423.zip
Only save state if we have a folder reference. Fixes some warnings about
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. svn path=/trunk/; revision=21470
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c5
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-");