From 0f0f75f000ff29957dd03047e1a3c68b33c89941 Mon Sep 17 00:00:00 2001 From: gyboth Date: Sun, 4 Jan 2009 09:09:05 +0000 Subject: [PATCH] Inactive leagues re-enabled in team selections. --- src/treeview.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) 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)