1
0
Fork 0

Set the active dialog property to the one that is on top after a dialog is closed

This commit is contained in:
Richard Harrison 2018-09-02 12:27:31 +02:00
parent 1eab1722e5
commit c923ae5b32

View file

@ -238,6 +238,10 @@ NewGUI::closeActiveDialog ()
delete _active_dialog;
_active_dialog = 0;
if (_active_dialogs.size())
{
fgSetString("/sim/gui/dialogs/current-dialog", _active_dialogs.begin()->second->getName());
}
return true;
}