From 09633dde9e225a112698b491e39fa30d92f72809 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 14 May 2008 12:53:00 +0000 Subject: ** Fixes bug #463040, Patch by Milan Crha 2008-05-14 Matthew Barnes ** Fixes bug #463040, Patch by Milan Crha * mail/em-folder-browser.c (emfb_list_message_selectedi), (emfb_set_folder): Forget former selected uid as soon as we know we moved to other. svn path=/trunk/; revision=35494 --- mail/em-folder-browser.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail/em-folder-browser.c') diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index b2c4eb4c08..5444fd0e32 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -1356,6 +1356,8 @@ emfb_list_message_selected (MessageList *ml, const char *uid, EMFolderBrowser *e camel_object_meta_set (emfv->folder, "evolution:selected_uid", uid); camel_object_state_write (emfv->folder); + g_free (emfb->priv->select_uid); + emfb->priv->select_uid = NULL; } /* ********************************************************************** */ @@ -2017,6 +2019,8 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) if (camel_object_meta_set(emfv->folder, "evolution:show_preview", "0") && camel_object_meta_set(emfv->folder, "evolution:selected_uid", NULL)) { camel_object_state_write(emfv->folder); + g_free (emfb->priv->select_uid); + emfb->priv->select_uid = NULL; } gconf_client_set_bool (gconf, "/apps/evolution/mail/display/safe_list", FALSE, NULL); } @@ -2085,6 +2089,7 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) /* set the query manually, so we dont pop up advanced or saved search stuff */ if ((sstate = camel_object_meta_get (folder, "evolution:selected_uid"))) { + g_free (emfb->priv->select_uid); emfb->priv->select_uid = sstate; } else { g_free(p->select_uid); -- cgit