From 9569e7998527850643b25b58eceef94fbce72286 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Fri, 6 Nov 2009 17:27:02 -0500
Subject: [PATCH] [#2387] Fixes history searching and filtering

---
 sflphone-client-gnome/src/contacts/history.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sflphone-client-gnome/src/contacts/history.c b/sflphone-client-gnome/src/contacts/history.c
index 6d18b39471..5aa5010d2a 100644
--- a/sflphone-client-gnome/src/contacts/history.c
+++ b/sflphone-client-gnome/src/contacts/history.c
@@ -69,7 +69,9 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi
 
     callable_obj_t *history_entry = NULL;
     gchar* text = NULL;
+
     gchar* search = (gchar*)gtk_entry_get_text(GTK_ENTRY(history_searchbar_widget));
+
     memset (&val, 0, sizeof(val));
     memset (&obj, 0, sizeof(obj));
     
@@ -80,7 +82,7 @@ static gboolean history_is_visible (GtkTreeModel* model, GtkTreeIter* iter, gpoi
     }
     
     // Fetch the call type
-    gtk_tree_model_get_value (GTK_TREE_MODEL(model), iter, 2, &obj);
+    gtk_tree_model_get_value (GTK_TREE_MODEL(model), iter, 3, &obj);
     if (G_VALUE_HOLDS_POINTER (&obj)){
         history_entry = (gpointer) g_value_get_pointer (&obj);
     }
-- 
GitLab