mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Don't reset temporarily hidden container window
This commit is contained in:
parent
4ae504970f
commit
f1b7cd5404
@ -163,6 +163,10 @@ namespace MWGui
|
|||||||
{
|
{
|
||||||
WindowBase::onClose();
|
WindowBase::onClose();
|
||||||
|
|
||||||
|
// Make sure the window was actually closed and not temporarily hidden.
|
||||||
|
if (MWBase::Environment::get().getWindowManager()->containsMode(GM_Container))
|
||||||
|
return;
|
||||||
|
|
||||||
if (mModel)
|
if (mModel)
|
||||||
mModel->onClose();
|
mModel->onClose();
|
||||||
|
|
||||||
@ -185,6 +189,7 @@ namespace MWGui
|
|||||||
|
|
||||||
// transfer everything into the player's inventory
|
// transfer everything into the player's inventory
|
||||||
ItemModel* playerModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getModel();
|
ItemModel* playerModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getModel();
|
||||||
|
assert(mModel);
|
||||||
mModel->update();
|
mModel->update();
|
||||||
|
|
||||||
// unequip all items to avoid unequipping/reequipping
|
// unequip all items to avoid unequipping/reequipping
|
||||||
|
Loading…
Reference in New Issue
Block a user