diff --git a/src/treeview.c b/src/treeview.c index 1fe5d40e..bcb2967f 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -74,23 +74,20 @@ treeview_create_team_selection_list(gboolean show_cup_teams, gboolean show_user_ for(i=0;ilen;i++) { - if(!query_league_cup_has_property(lig(i).id, "inactive")) + for(j=0;jlen;j++) { - for(j=0;jlen;j++) + if(team_is_user(&g_array_index(lig(i).teams, Team, j)) == -1) { - if(team_is_user(&g_array_index(lig(i).teams, Team, j)) == -1) - { - gtk_list_store_append(ls, &iter); - treeview_helper_insert_icon((GtkTreeModel*)ls, &iter, 1, g_array_index(lig(i).teams, Team, j).symbol); - gtk_list_store_set(ls, &iter, - 0, cnt++, - 2, (gpointer)&g_array_index(lig(i).teams, Team, j), - 3, lig(i).name, - 4, (gpointer)&g_array_index(lig(i).teams, Team, j), - -1); - } - } - } + gtk_list_store_append(ls, &iter); + treeview_helper_insert_icon((GtkTreeModel*)ls, &iter, 1, g_array_index(lig(i).teams, Team, j).symbol); + gtk_list_store_set(ls, &iter, + 0, cnt++, + 2, (gpointer)&g_array_index(lig(i).teams, Team, j), + 3, lig(i).name, + 4, (gpointer)&g_array_index(lig(i).teams, Team, j), + -1); + } + } } if(!show_cup_teams)