aboutsummaryrefslogtreecommitdiffstats
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
parent986233402692ada4c2ec3aaf18e355af0b92c180 (diff)
downloadgsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.gz
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.bz2
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.lz
gsoc2013-evolution-9f3a0c94c3349bc9f4ee7cdcb60264dc98094313.tar.xz
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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/folder-browser.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 737de40030..f9d923ce8e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2002-10-08 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): The CamelFolderInfo
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);