diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index cddaac9110..97e0d053e5 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1968,9 +1968,13 @@ load_tree_state (MessageList *message_list, CamelFolder *folder, xmlDoc *expand_state) { + ETreeTableAdapter *adapter; + if (folder == NULL) return; + adapter = e_tree_get_table_adapter (E_TREE (message_list)); + if (expand_state) { e_tree_load_expanded_state_xml ( E_TREE (message_list), expand_state); @@ -1980,7 +1984,7 @@ load_tree_state (MessageList *message_list, filename = mail_config_folder_to_cachename ( folder, "et-expanded-"); - e_tree_load_expanded_state (E_TREE (message_list), filename); + e_tree_table_adapter_load_expanded_state (adapter, filename); g_free (filename); } |