diff --git a/ChangeLog b/ChangeLog index b23c464c6b..127bf0fe99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-13 Andreas Köhler + + * src/gnome-utils/gnc-plugin-page.c (gnc_plugin_page_add_book): + Save a QofBook instead of its GUID in the list of books. This + should renable the deletion of some plugin pages. + 2006-03-13 Christian Stimming * */*.scm: Reduce debug stack size from 2,000,000 to 200,000 diff --git a/src/gnome-utils/gnc-plugin-page.c b/src/gnome-utils/gnc-plugin-page.c index 97b5a7c726..f57a2c0b1a 100644 --- a/src/gnome-utils/gnc-plugin-page.c +++ b/src/gnome-utils/gnc-plugin-page.c @@ -679,22 +679,16 @@ void gnc_plugin_page_add_book (GncPluginPage *page, QofBook *book) { GncPluginPagePrivate *priv; - GUID *guid; g_return_if_fail (GNC_IS_PLUGIN_PAGE (page)); g_return_if_fail (book != NULL); priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page); - - guid = guid_malloc(); - *guid = *qof_book_get_guid(book); - priv->books = g_list_append(priv->books, guid); + priv->books = g_list_append(priv->books, book); } -/* Query a page to see if it has a reference to a given book. This - * function takes a guid instead of a QofBook because that's what the - * engine event mechanism provides. */ +/* Query a page to see if it has a reference to a given book. */ gboolean gnc_plugin_page_has_book (GncPluginPage *page, QofBook *book) {