mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 21:15:33 +00:00
Fix a crash when exit() already hides the window (Fixes #4148)
This commit is contained in:
parent
842a42ee66
commit
2805781542
1 changed files with 3 additions and 2 deletions
|
@ -1729,9 +1729,10 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
if (!mCurrentModals.empty())
|
if (!mCurrentModals.empty())
|
||||||
{
|
{
|
||||||
if (!mCurrentModals.back()->exit())
|
WindowModal* window = mCurrentModals.back();
|
||||||
|
if (!window->exit())
|
||||||
return;
|
return;
|
||||||
mCurrentModals.back()->setVisible(false);
|
window->setVisible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue