Commit 8b631b84 authored by Julien Bonjean's avatar Julien Bonjean

Fixed contacts search bug when empty query

parent 1099bd33
...@@ -253,12 +253,6 @@ toggle_contacts(GtkToggleToolButton *toggle_tool_button UNUSED, ...@@ -253,12 +253,6 @@ toggle_contacts(GtkToggleToolButton *toggle_tool_button UNUSED,
// do a synchronized search // do a synchronized search
results = search_sync (gtk_entry_get_text(GTK_ENTRY(filter_entry)), 50); results = search_sync (gtk_entry_get_text(GTK_ENTRY(filter_entry)), 50);
if(results == NULL)
{
printf("No results\n");
return ;
}
for (i = results; i != NULL; i = i->next) for (i = results; i != NULL; i = i->next)
{ {
Hit *entry; Hit *entry;
......
...@@ -56,13 +56,10 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED) ...@@ -56,13 +56,10 @@ is_visible(GtkTreeModel* model, GtkTreeIter* iter, gpointer data UNUSED)
void void
filter_entry_changed(GtkEntry* entry UNUSED, gchar* arg1 UNUSED, gpointer data UNUSED) filter_entry_changed(GtkEntry* entry UNUSED, gchar* arg1 UNUSED, gpointer data UNUSED)
{ {
//printf("%s\n",gtk_entry_get_text(GTK_ENTRY(entry)));
if(active_calltree == current_calls) if(active_calltree == current_calls)
switch_tab(contacts); switch_tab(contacts);
else else
refresh_tab(active_calltree); refresh_tab(active_calltree);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment