[bijiben/gnome-3-10] Controller: fix the item removal
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/gnome-3-10] Controller: fix the item removal
- Date: Thu, 7 Nov 2013 22:29:16 +0000 (UTC)
commit 408106e26aa08d0dfec0e451a221b9ad53ef7bcc
Author: Pierre-Yves Luyten <py luyten fr>
Date: Thu Nov 7 23:11:45 2013 +0100
Controller: fix the item removal
No more note. The on_manager_changed deals with generic "items".
See https://bugzilla.redhat.com/show_bug.cgi?id=1026979
src/bjb-controller.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index 9d88065..6eebc02 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -558,7 +558,6 @@ on_book_changed (BijiNoteBook *book,
{
BjbControllerPrivate *priv = self->priv;
BijiItem *item = BIJI_ITEM (biji_item);
- BijiNoteObj *note = NULL;
GtkTreeIter iter;
GtkTreeIter *p_iter = &iter;
@@ -614,7 +613,7 @@ on_book_changed (BijiNoteBook *book,
if (bjb_controller_get_iter (self, item, &p_iter))
gtk_list_store_remove (GTK_LIST_STORE (priv->model), p_iter);
- priv->items_to_show = g_list_remove (priv->items_to_show, note);
+ priv->items_to_show = g_list_remove (priv->items_to_show, item);
notify_displayed_items_changed (self);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]