aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-11 02:05:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-11 02:05:59 +0800
commit9f3a0c94c3349bc9f4ee7cdcb60264dc98094313 (patch)
treef7985ba33aa0ca94c695a0abef5f20103c5bfa9e /mail/folder-browser.c
parent986233402692ada4c2ec3aaf18e355af0b92c180 (diff)
downloadgsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.gz
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.zst
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.zip
Don't do anything if the message_list is NULL (this means the
2002-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (main_folder_changed): Don't do anything if the message_list is NULL (this means the FolderBrowser has been destroyed). Fixes bug #32002. svn path=/trunk/; revision=18363
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index fb58220e7f..f0cbb7eef5 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -800,8 +800,10 @@ static gboolean
update_status_bar_idle_cb(gpointer data)
{
FolderBrowser *fb = data;
+
if (!GTK_OBJECT_DESTROYED (fb))
update_status_bar (fb);
+
fb->update_status_bar_idle_id = 0;
gtk_object_unref (GTK_OBJECT (fb));
return FALSE;
@@ -819,7 +821,10 @@ update_status_bar_idle(FolderBrowser *fb)
static void main_folder_changed(CamelObject *o, void *event_data, void *data)
{
FolderBrowser *fb = data;
-
+
+ if (fb->message_list == NULL)
+ return;
+
/* so some corba unref doesnt blow us away while we're busy */
gtk_object_ref((GtkObject *)fb);
update_status_bar(fb);