diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c
index 7443b5ff55ed7909c18f4feffe06b9a39bced6bc..d0be7e9beaf800bf9197e8d10bfce712d802db89 100644
--- a/sflphone-gtk/src/actions.c
+++ b/sflphone-gtk/src/actions.c
@@ -233,7 +233,7 @@ gboolean sflphone_init()
         current_calls = calltab_init(NULL);
         history = calltab_init("history");
         contacts = calltab_init("contacts");
-        //if(SHOW_SEARCHBAR)  histfilter = create_filter(GTK_TREE_MODEL(history->store));
+        histfilter = create_filter(GTK_TREE_MODEL(history->store));
         init();
         account_list_init ();
         codec_list_init();
diff --git a/sflphone-gtk/src/calltab.h b/sflphone-gtk/src/calltab.h
index ce31082f9e96bf4e3576dbc831a9b6c5c1ed8ce2..4438d3d8fcb2810be0948c3a4f0144f0698edc71 100644
--- a/sflphone-gtk/src/calltab.h
+++ b/sflphone-gtk/src/calltab.h
@@ -23,7 +23,7 @@
 #include <calllist.h>
 #include <gtk/gtk.h>
 
-//GtkTreeModel* histfilter;
+GtkTreeModel* histfilter;
 
 calltab_t* calltab_init(gchar* searchbar_type);
 
diff --git a/sflphone-gtk/src/calltree.c b/sflphone-gtk/src/calltree.c
index dc030e5142285573ea6762231c6506a208d50925..1e2c04fcee38d69764a237881367fea76fcef6cb 100644
--- a/sflphone-gtk/src/calltree.c
+++ b/sflphone-gtk/src/calltree.c
@@ -844,9 +844,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
   // g_strcmp0 returns 0 if str1 == str2
   if(g_strcmp0(searchbar_type,"history") == 0){
 
-      GtkTreeIter *iter;
+    // GtkTreeIter *iter;
 
-      GtkTreeModel *model = (GtkTreeModel*)history->store;
+      // GtkTreeModel *model = (GtkTreeModel*)history->store;
 
       // create_filter (model);
       
@@ -858,8 +858,9 @@ create_searchbar(calltab_t* tab, gchar* searchbar_type)
       // create_filter (model);
 
       // is_visible(model, iter);
-
+      
       tab->searchbar = create_filter_entry();
+      gtk_tree_view_set_model(GTK_TREE_VIEW(history->view), GTK_TREE_MODEL(histfilter));
   }
 
   else if(g_strcmp0(searchbar_type,"contacts") == 0)