aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-12-06 02:30:58 +0800
committerChris Toshok <toshok@src.gnome.org>2003-12-06 02:30:58 +0800
commitb57968e1216d9bdeddb8e6e3fbc8e61ce101cc17 (patch)
tree03e13e89fca478400bba35bef9caf24844999c39 /addressbook/gui
parent4df8998b86b5056b08d4ab622267304a3abc7ac0 (diff)
downloadgsoc2013-evolution-b57968e1216d9bdeddb8e6e3fbc8e61ce101cc17.tar.gz
gsoc2013-evolution-b57968e1216d9bdeddb8e6e3fbc8e61ce101cc17.tar.zst
gsoc2013-evolution-b57968e1216d9bdeddb8e6e3fbc8e61ce101cc17.zip
call remove_book_view/free_data here as well, to guard against multiple
2003-12-05 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-model.c (book_view_loaded): call remove_book_view/free_data here as well, to guard against multiple book_view's being loaded. svn path=/trunk/; revision=23652
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 5a8088dc0a..992b42b852 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -449,6 +449,9 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe
return;
}
+ remove_book_view (model);
+ free_data (model);
+
model->book_view = book_view;
if (model->book_view)
g_object_ref (model->book_view);