aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-10-27 23:57:41 +0800
committerDan Winship <danw@src.gnome.org>2002-10-27 23:57:41 +0800
commit8e608706e0d2544677fa213b3c17ce83924f6b1e (patch)
tree58cd517f69164cbe21e52985306bf77c1882a7b5 /addressbook/gui/widgets/e-addressbook-model.c
parent363f7b5400c5cf59a42331585bde68e14448140d (diff)
downloadgsoc2013-evolution-8e608706e0d2544677fa213b3c17ce83924f6b1e.tar.gz
gsoc2013-evolution-8e608706e0d2544677fa213b3c17ce83924f6b1e.tar.zst
gsoc2013-evolution-8e608706e0d2544677fa213b3c17ce83924f6b1e.zip
Disconnect from the book's backend_died signal.
* gui/widgets/e-addressbook-model.c (addressbook_destroy): Disconnect from the book's backend_died signal. svn path=/trunk/; revision=18446
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 9244df8a38..d93c7c0f86 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -119,9 +119,13 @@ addressbook_destroy(GtkObject *object)
if (model->writable_status_id)
gtk_signal_disconnect(GTK_OBJECT (model->book),
model->writable_status_id);
-
model->writable_status_id = 0;
+ if (model->backend_died_id)
+ gtk_signal_disconnect(GTK_OBJECT (model->book),
+ model->backend_died_id);
+ model->backend_died_id = 0;
+
gtk_object_unref(GTK_OBJECT(model->book));
model->book = NULL;
}