mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-26 18:26:41 +00:00
Erase the widget we want to attach rather than the widget we're attaching to
This commit is contained in:
parent
2e67c8b47f
commit
a665980d5e
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ namespace LuaUi
|
||||||
if (ext->mParent)
|
if (ext->mParent)
|
||||||
{
|
{
|
||||||
auto children = ext->mParent->children();
|
auto children = ext->mParent->children();
|
||||||
std::erase(children, this);
|
std::erase(children, ext);
|
||||||
ext->mParent->setChildren(children);
|
ext->mParent->setChildren(children);
|
||||||
}
|
}
|
||||||
ext->detachFromParent();
|
ext->detachFromParent();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue