Fix warning "LLModalDialog::stopModal: LLModalDialog::stopModal not in list!" by properly pushing modal alert toasts on the modal dialog stack

Need to call onOpen() for modal alert toasts in setVisible() because the
virtual methods LLModalDialog::openFloater and LLModalDialog::onOpen() never
get invoked by LLFloater - this is only done by LLFloaterReg or if manually
doing so, but not for LLToast
meow-7.2.2
Ansariel 2015-12-04 17:11:40 +01:00
parent 7212613a8b
commit 2751fbdc70
1 changed files with 6 additions and 0 deletions

View File

@ -393,6 +393,12 @@ void LLToast::setVisible(BOOL show)
if (!getVisible())
{
LLModalDialog::setFrontmost(FALSE);
// <FS:Ansariel> Properly push the modal toast on the modal dialog stack
if (isModal())
{
onOpen(LLSD());
}
// </FS:Ansariel>
}
}
else