Skip to content

Commit

Permalink
#3551 Crash at findItemByID
Browse files Browse the repository at this point in the history
  • Loading branch information
akleshchev committed Feb 18, 2025
1 parent b474688 commit a8eda57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indra/newview/llchiclet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,11 @@ void LLNotificationChiclet::setCounter(S32 counter)
bool LLNotificationChiclet::ChicletNotificationChannel::filterNotification( LLNotificationPtr notification )
{
bool displayNotification;
LLFloaterNotificationsTabbed* floater = LLFloaterNotificationsTabbed::getInstance();
if ( (notification->getName() == "ScriptDialog") // special case for scripts
// if there is no toast window for the notification, filter it
//|| (!LLNotificationWellWindow::getInstance()->findItemByID(notification->getID()))
|| (!LLFloaterNotificationsTabbed::getInstance()->findItemByID(notification->getID(), notification->getName()))
|| (floater && !floater->findItemByID(notification->getID(), notification->getName()))
)
{
displayNotification = false;
Expand Down

0 comments on commit a8eda57

Please sign in to comment.