aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 5dc2a5fde2..11c75ad9b5 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -1342,9 +1342,11 @@ static void
nuke_uids (GtkObject *o)
{
ETreeModel *etm = E_TREE_MODEL (o);
+ ETreePath *root = e_tree_model_get_root (etm);
- if (etm->root)
- e_tree_model_node_traverse (etm, etm->root, nuke_uids_cb, NULL);
+ if (root)
+ e_tree_model_node_traverse (etm, root,
+ nuke_uids_cb, NULL);
}
static void