aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-09-27 07:52:25 +0800
committerChris Lahey <clahey@src.gnome.org>2001-09-27 07:52:25 +0800
commitcead0767026a44d33ae872f5ab8a9bc0121ef7dd (patch)
treebb36cae5fafb6268d1face9decf9a76756023f8e
parent115673976ef283adb657f6d21da731b61fa34bae (diff)
downloadgsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar.gz
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar.bz2
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar.lz
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar.xz
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.tar.zst
gsoc2013-evolution-cead0767026a44d33ae872f5ab8a9bc0121ef7dd.zip
Check for the root node here.
2001-09-26 Christopher James Lahey <clahey@ximian.com> * message-list.c (mlfe_callback): Check for the root node here. svn path=/trunk/; revision=13177
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/message-list.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 039653a794..ced01de2a7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-26 Christopher James Lahey <clahey@ximian.com>
+
+ * message-list.c (mlfe_callback): Check for the root node here.
+
2001-09-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (do_get_pass): Change the wording of the password
diff --git a/mail/message-list.c b/mail/message-list.c
index da895d619f..f78e4beb99 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2058,6 +2058,9 @@ mlfe_callback (ETreePath path, gpointer user_data)
{
struct message_list_foreach_data *mlfe_data = user_data;
const char *uid;
+
+ if (e_tree_model_node_is_root (mlfe_data->message_list->model, path))
+ return;
uid = get_message_uid (mlfe_data->message_list,
path);