Skip to content
Snippets Groups Projects
Commit 8b631b84 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

Fixed contacts search bug when empty query

parent 1099bd33
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment