mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[ui] Use View_Delete to delete the view
It's there for a reason :P. Fixes most of the really bad behavior after disabling some widgets (re-layout isn't working at all, though, and adding the widgets back again puts them in the wrong place).
This commit is contained in:
parent
7c17921277
commit
a6a0b6cb63
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ prune_objects (imui_ctx_t *ctx)
|
|||
if ((*s)->frame_count == ctx->frame_count) {
|
||||
s = &(*s)->next;
|
||||
} else {
|
||||
ECS_DelEntity (ctx->csys.reg, (*s)->entity);
|
||||
View_Delete (View_FromEntity (ctx->vsys, (*s)->entity));
|
||||
Hash_Del (ctx->tab, (*s)->label + (*s)->key_offset);
|
||||
imui_state_free (ctx, *s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue