summaryrefslogtreecommitdiff
path: root/indra/newview/lltoast.h
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-05-22 14:24:09 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-05-22 14:24:09 +0300
commit250a0396ac2c8af0a8139b50b55c81f036d37def (patch)
treeb9cd6b2c43a11841f5af4f2fe8f5e911a54815a3 /indra/newview/lltoast.h
parent7fc86d1a99245556e7f886dd75546716d4a30cc8 (diff)
MAINT-8635 Don't allow using 'close all windows' if modal toast is open
Diffstat (limited to 'indra/newview/lltoast.h')
-rw-r--r--indra/newview/lltoast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/lltoast.h b/indra/newview/lltoast.h
index cd92189012..69074b1670 100644
--- a/indra/newview/lltoast.h
+++ b/indra/newview/lltoast.h
@@ -108,6 +108,8 @@ public:
static void updateClass();
static void cleanupToasts();
+ static BOOL isAlertToastShown() { return sModalToastsList.size() > 0; }
+
LLToast(const LLToast::Params& p);
virtual ~LLToast();
BOOL postBuild();
@@ -245,6 +247,8 @@ private:
commit_signal_t mToastMouseEnterSignal;
commit_signal_t mToastMouseLeaveSignal;
+
+ static std::list<LLToast*> sModalToastsList;
};
}