From 2751fbdc70aa98b8326e12bbfb6c80e846ef0566 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 4 Dec 2015 17:11:40 +0100 Subject: [PATCH] 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 --- indra/newview/lltoast.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/newview/lltoast.cpp b/indra/newview/lltoast.cpp index b6b18d1905..2b557d1d42 100755 --- a/indra/newview/lltoast.cpp +++ b/indra/newview/lltoast.cpp @@ -393,6 +393,12 @@ void LLToast::setVisible(BOOL show) if (!getVisible()) { LLModalDialog::setFrontmost(FALSE); + // Properly push the modal toast on the modal dialog stack + if (isModal()) + { + onOpen(LLSD()); + } + // } } else