[nautilus/wip/corey/fix-sort: 5/7] view-model: Use existing count
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/fix-sort: 5/7] view-model: Use existing count
- Date: Tue, 27 Sep 2022 22:46:04 +0000 (UTC)
commit 24e60ccc2fae1a9a73389b48407cef75b0d595f5
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]