forked from enlightenment/terminology
win: clean up tabs list asap
This commit is contained in:
parent
9ce403d29b
commit
9b23e02b4e
|
@ -3324,6 +3324,7 @@ _tabs_close(Term_Container *tc, Term_Container *child)
|
||||||
|
|
||||||
l = _tab_item_find(tabs, child);
|
l = _tab_item_find(tabs, child);
|
||||||
item = l->data;
|
item = l->data;
|
||||||
|
tabs->tabs = eina_list_remove_list(tabs->tabs, l);
|
||||||
|
|
||||||
next = eina_list_next(l);
|
next = eina_list_next(l);
|
||||||
if (!next)
|
if (!next)
|
||||||
|
@ -3331,7 +3332,6 @@ _tabs_close(Term_Container *tc, Term_Container *child)
|
||||||
next_item = next->data;
|
next_item = next->data;
|
||||||
next_child = next_item->tc;
|
next_child = next_item->tc;
|
||||||
assert (next_child->type == TERM_CONTAINER_TYPE_SOLO);
|
assert (next_child->type == TERM_CONTAINER_TYPE_SOLO);
|
||||||
tabs->tabs = eina_list_remove_list(tabs->tabs, l);
|
|
||||||
|
|
||||||
assert (child->type == TERM_CONTAINER_TYPE_SOLO);
|
assert (child->type == TERM_CONTAINER_TYPE_SOLO);
|
||||||
solo = (Solo*)child;
|
solo = (Solo*)child;
|
||||||
|
|
Loading…
Reference in New Issue