aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-01-06 03:32:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-01-06 03:32:52 +0800
commit5f1f5fcffd81e6debe57ae252d84132f50a6d87a (patch)
treeb6c99cd2efc0259244511d9b6e2ca6415d9ae01b /mail/em-folder-browser.c
parentf1d87c869e057adb510465dbaae4d2624020f9f4 (diff)
downloadgsoc2013-evolution-5f1f5fcffd81e6debe57ae252d84132f50a6d87a.tar.gz
gsoc2013-evolution-5f1f5fcffd81e6debe57ae252d84132f50a6d87a.tar.zst
gsoc2013-evolution-5f1f5fcffd81e6debe57ae252d84132f50a6d87a.zip
Check that the folder isn't NULL (ie. no folder is selected). Fixes bug
2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_list_message_selected): Check that the folder isn't NULL (ie. no folder is selected). Fixes bug #52207. * message-list.c (message_list_set_folder): Remove the cursor-activated idle callback. svn path=/trunk/; revision=24054
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index 50ea24749c..23abdc7d93 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -450,6 +450,9 @@ emfb_list_message_selected (MessageList *ml, const char *uid, EMFolderBrowser *e
{
EMFolderView *emfv = (EMFolderView *) emfb;
+ if (emfv->folder == NULL)
+ return;
+
camel_object_meta_set (emfv->folder, "evolution:selected_uid", uid);
camel_object_state_write (emfv->folder);
}