mirror of https://github.com/tstellar/bygfoot.git
Inactive league bugfix.
This commit is contained in:
parent
64f1e7ff83
commit
5c1e061785
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue