Hide modal window before deleting it (Fixes )

This commit is contained in:
scrawl 2017-10-23 23:31:59 +02:00
parent 8b19a8b7f6
commit 2a0b2c4e24

View file

@ -126,6 +126,7 @@ namespace MWGui
if (mInterMessageBoxe != NULL)
{
std::cerr << "Warning: replacing an interactive message box that was not answered yet" << std::endl;
mInterMessageBoxe->setVisible(false);
delete mInterMessageBoxe;
mInterMessageBoxe = NULL;
}