1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-26 17:26:41 +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:
Alexei Kotov 2025-10-24 19:17:50 +03:00
commit 2708bfab9f

View file

@ -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();