FIX(windowmanagerimp): Don't remove a ui mode twice

pull/3236/head
Dave Corley 4 months ago
parent 6b762a5328
commit 2ea9d6ba20

@ -1323,9 +1323,12 @@ namespace MWGui
window->exit();
}
mKeyboardNavigation->saveFocus(mode);
mGuiModes.pop_back();
mGuiModeStates[mode].update(false);
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
if (containsMode(mode))
{
mGuiModes.pop_back();
mGuiModeStates[mode].update(false);
MWBase::Environment::get().getLuaManager()->uiModeChanged(MWWorld::Ptr());
}
}
if (!mGuiModes.empty())

Loading…
Cancel
Save