[bijiben] controller: fix adding item to controller when a note appears



commit ec3506b9eff65e8fafc626fb8d09d0b9d3d24d41
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Thu Sep 5 01:45:55 2013 +0200

    controller: fix adding item to controller when a note appears
    
    Otherwise, changing view will loose the item
    See 702983

 src/bjb-controller.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index db978cf..00fbe63 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -567,7 +567,7 @@ on_book_changed (BijiNoteBook           *book,
 
           bjb_controller_add_item_if_needed (self, item, TRUE, p_iter);
           priv->n_items_to_show ++;
-          priv->items_to_show = g_list_prepend (priv->items_to_show, note);
+          priv->items_to_show = g_list_prepend (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]