[nautilus/wip/corey/fix-sort: 2/4] view-model: Use existing count
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/fix-sort: 2/4] view-model: Use existing count
- Date: Mon, 10 Oct 2022 20:02:48 +0000 (UTC)
commit 08cf008d6c7dc9041a0ce93c8f027347fe6f0417
Author: Corey Berla <corey berla me>
Date: Tue Sep 27 15:23:14 2022 -0700
view-model: Use existing count
src/nautilus-view-model.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-view-model.c b/src/nautilus-view-model.c
index 0ce806713..3080bb037 100644
--- a/src/nautilus-view-model.c
+++ b/src/nautilus-view-model.c
@@ -405,7 +405,7 @@ nautilus_view_model_add_items (NautilusViewModel *self,
g_list_store_splice (self->internal_model,
g_list_model_get_n_items (G_LIST_MODEL (self->internal_model)),
- 0, array, g_queue_get_length (items));
+ 0, array, i);
g_list_store_sort (self->internal_model, compare_data_func, self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]