mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-26 23:26:38 +00:00
Merge branch 'erasethechildren' into 'master'
Erase the widget we want to attach rather than the widget we're attaching to Closes #8758 See merge request OpenMW/openmw!4962
This commit is contained in:
commit
2708bfab9f
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ namespace LuaUi
|
|||
if (ext->mParent)
|
||||
{
|
||||
auto children = ext->mParent->children();
|
||||
std::erase(children, this);
|
||||
std::erase(children, ext);
|
||||
ext->mParent->setChildren(children);
|
||||
}
|
||||
ext->detachFromParent();
|
||||
|
|
|
|||
Loading…
Reference in a new issue