summaryrefslogtreecommitdiff
path: root/indra/llui/llnotifications.cpp
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2017-06-02 16:44:00 +0200
committerKitty Barnett <develop@catznip.com>2017-06-02 16:44:00 +0200
commitd7edeb2df8b225c39727bf506b4e5126852e2d5d (patch)
tree4bb5fd882b510662333565c49aaf10d115366fa1 /indra/llui/llnotifications.cpp
parent71f580e72a0f16cc4b29a7132af5be154ad128a7 (diff)
STORM-2149: Add a warning notification when deleting a folder of filtered content
Diffstat (limited to 'indra/llui/llnotifications.cpp')
-rw-r--r--indra/llui/llnotifications.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index c364c4d5ae..d40347de13 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -1798,6 +1798,12 @@ bool LLNotifications::getIgnoreAllNotifications()
{
return mIgnoreAllNotifications;
}
+
+bool LLNotifications::getIgnored(const std::string& name)
+{
+ LLNotificationTemplatePtr templatep = getTemplate(name);
+ return (mIgnoreAllNotifications) || ( (templatep->mForm->getIgnoreType() != LLNotificationForm::IGNORE_NO) && (templatep->mForm->getIgnored()) );
+}
bool LLNotifications::isVisibleByRules(LLNotificationPtr n)
{