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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user