[evolution-patches] camel-object cast warning fix
- From: Jeffrey Stedfast <fejj ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] camel-object cast warning fix
- Date: 17 Jun 2003 18:34:11 -0400
gets rid of some annoying warning spewage at runtime...
Jeff
--
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com - www.ximian.com
? 42630.patch
? crash.txt
? message-tree.c
? message-tree.h
? ml.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2751
diff -u -r1.2751 ChangeLog
--- ChangeLog 17 Jun 2003 17:58:34 -0000 1.2751
+++ ChangeLog 17 Jun 2003 22:15:49 -0000
@@ -1,3 +1,9 @@
+2003-06-17 Jeffrey Stedfast <fejj ximian com>
+
+ * message-list.c (message_list_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
Index: message-list.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/message-list.c,v
retrieving revision 1.343
diff -u -r1.343 message-list.c
--- message-list.c 17 Jun 2003 17:58:34 -0000 1.343
+++ message-list.c 17 Jun 2003 22:15:49 -0000
@@ -1220,8 +1220,10 @@
void
message_list_save_state (MessageList *ml)
{
- save_tree_state (ml);
- hide_save_state (ml);
+ if (ml->folder) {
+ save_tree_state (ml);
+ hide_save_state (ml);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]