diff options
author | Milan Crha <mcrha@redhat.com> | 2009-12-18 03:17:04 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-12-18 03:17:04 +0800 |
commit | 134a7d4bbde9d96e1e002abebb667c5d3cde66ca (patch) | |
tree | 1aff7b0f1f64949193459fde96b2a997ee49c6cf /mail/message-list.c | |
parent | fe15c797a036820ac4b5e8cf232ad0a559fcd06b (diff) | |
download | gsoc2013-evolution-134a7d4bbde9d96e1e002abebb667c5d3cde66ca.tar.gz gsoc2013-evolution-134a7d4bbde9d96e1e002abebb667c5d3cde66ca.tar.zst gsoc2013-evolution-134a7d4bbde9d96e1e002abebb667c5d3cde66ca.zip |
Bug #593700 - Restore folder's last selected message as expected
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index bbffb44bde..dcf2e4fed1 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3462,12 +3462,6 @@ message_list_set_folder (MessageList *message_list, CamelFolder *folder, const g camel_exception_init (&ex); - /* remove the cursor activate idle handler */ - if (message_list->idle_id != 0) { - g_source_remove (message_list->idle_id); - message_list->idle_id = 0; - } - if (message_list->seen_id) { g_source_remove (message_list->seen_id); message_list->seen_id = 0; @@ -3487,6 +3481,12 @@ message_list_set_folder (MessageList *message_list, CamelFolder *folder, const g clear_tree (message_list, TRUE); e_tree_memory_thaw(E_TREE_MEMORY(etm)); + /* remove the cursor activate idle handler */ + if (message_list->idle_id != 0) { + g_source_remove (message_list->idle_id); + message_list->idle_id = 0; + } + if (message_list->folder) { camel_object_unhook_event((CamelObject *)message_list->folder, "folder_changed", folder_changed, message_list); |