1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-26 15:26:40 +00:00

Erase the widget we want to attach rather than the widget we're attaching to

This commit is contained in:
Evil Eye 2025-10-23 17:23:37 +02:00
parent 2e67c8b47f
commit a665980d5e

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