mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 06:40:09 +00:00
FIX(windowmanagerimp): Don't remove a ui mode twice
This commit is contained in:
parent
6b762a5328
commit
2ea9d6ba20
@ -1323,10 +1323,13 @@ namespace MWGui
|
|||||||
window->exit();
|
window->exit();
|
||||||
}
|
}
|
||||||
mKeyboardNavigation->saveFocus(mode);
|
mKeyboardNavigation->saveFocus(mode);
|
||||||
|
if (containsMode(mode))
|
||||||
|
{
|
||||||
mGuiModes.pop_back();
|
mGuiModes.pop_back();
|
||||||
mGuiModeStates[mode].update(false);
|
mGuiModeStates[mode].update(false);
|
||||||
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
|
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!mGuiModes.empty())
|
if (!mGuiModes.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user