Inactive league bugfix.

This commit is contained in:
gyboth 2008-12-21 11:38:02 +00:00
parent 64f1e7ff83
commit 5c1e061785
1 changed files with 17 additions and 14 deletions

View File

@ -74,20 +74,23 @@ treeview_create_team_selection_list(gboolean show_cup_teams, gboolean show_user_
for(i=0;i<ligs->len;i++) for(i=0;i<ligs->len;i++)
{ {
for(j=0;j<lig(i).teams->len;j++) if(!query_league_cup_has_property(lig(i).id, "inactive"))
{ {
if(team_is_user(&g_array_index(lig(i).teams, Team, j)) == -1) for(j=0;j<lig(i).teams->len;j++)
{ {
gtk_list_store_append(ls, &iter); if(team_is_user(&g_array_index(lig(i).teams, Team, j)) == -1)
treeview_helper_insert_icon((GtkTreeModel*)ls, &iter, 1, g_array_index(lig(i).teams, Team, j).symbol); {
gtk_list_store_set(ls, &iter, gtk_list_store_append(ls, &iter);
0, cnt++, treeview_helper_insert_icon((GtkTreeModel*)ls, &iter, 1, g_array_index(lig(i).teams, Team, j).symbol);
2, (gpointer)&g_array_index(lig(i).teams, Team, j), gtk_list_store_set(ls, &iter,
3, lig(i).name, 0, cnt++,
4, (gpointer)&g_array_index(lig(i).teams, Team, j), 2, (gpointer)&g_array_index(lig(i).teams, Team, j),
-1); 3, lig(i).name,
} 4, (gpointer)&g_array_index(lig(i).teams, Team, j),
} -1);
}
}
}
} }
if(!show_cup_teams) if(!show_cup_teams)