diff options
author | Chris Toshok <toshok@ximian.com> | 2003-12-06 02:30:58 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-12-06 02:30:58 +0800 |
commit | b57968e1216d9bdeddb8e6e3fbc8e61ce101cc17 (patch) | |
tree | 03e13e89fca478400bba35bef9caf24844999c39 | |
parent | 4df8998b86b5056b08d4ab622267304a3abc7ac0 (diff) | |
download | gsoc2013-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
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ca1b2bbbfd..392d90a69a 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-12-05 Hans Petter Jansson <hpj@ximian.com> * gui/widgets/e-addressbook-view.etspec: Clean up and sync with 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); |