diff --git a/table/table.gd b/table/table.gd index f1706f3..4d645d5 100644 --- a/table/table.gd +++ b/table/table.gd @@ -326,7 +326,9 @@ func _set_row_selected(i_row: int, selected: bool = true) -> void: var selector = nodes[selector_key] nodes.erase(selector_key) if is_instance_valid(selector): - node.remove_child(selector) + var prnt = selector.get_parent_control() + if prnt: + prnt.remove_child(selector) selector.queue_free() else: push_warning('обращение к удалённому элементу \"%s\"' % selector_key)