Set the active dialog property to the one that is on top after a dialog is closed
This commit is contained in:
parent
1eab1722e5
commit
c923ae5b32
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue