[gtk] maplistmodel: Fix an oversight



commit 7743f359720686b1183172a073fa210ba23faf15
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 14 19:51:26 2022 -0400

    maplistmodel: Fix an oversight
    
    This was meant to go into 678eb8ab76bd.

 gtk/gtkmaplistmodel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkmaplistmodel.c b/gtk/gtkmaplistmodel.c
index e1cb0b1553..de4cd27dbe 100644
--- a/gtk/gtkmaplistmodel.c
+++ b/gtk/gtkmaplistmodel.c
@@ -249,7 +249,7 @@ gtk_map_list_model_items_changed_cb (GListModel      *model,
           if (end >= position + count)
             {
               node->n_items -= count;
-              removed = 0;
+              count = 0;
               gtk_rb_tree_node_mark_dirty (node);
             }
           else if (start < position)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]