[tracker/tracker-needle-model: 4/25] needle: Fix the result store to return the correct n_children for the root.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-needle-model: 4/25] needle: Fix the result store to return the correct n_children for the root.
- Date: Thu, 24 Mar 2011 11:24:23 +0000 (UTC)
commit 2b9a9168e66f423cda1018471fe2d9445c50b00c
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Mar 17 18:44:53 2011 +0100
needle: Fix the result store to return the correct n_children for the root.
src/tracker-needle/tracker-result-store.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index 0566781..cfd7d71 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -471,7 +471,7 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
public int iter_n_children (Gtk.TreeIter? iter) {
if (iter == null) {
- return filled_categories_count ();
+ return categories.length;
}
if (iter.user_data2 != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]