1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-17 02:39:14 +01:00

Inactive leagues re-enabled in team selections.

This commit is contained in:
gyboth 2009-01-04 09:09:05 +00:00
parent 3c119fbf75
commit e1256eaec1

View File

@ -74,23 +74,20 @@ treeview_create_team_selection_list(gboolean show_cup_teams, gboolean show_user_
for(i=0;i<ligs->len;i++)
{
if(!query_league_cup_has_property(lig(i).id, "inactive"))
for(j=0;j<lig(i).teams->len;j++)
{
for(j=0;j<lig(i).teams->len;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)