CHUI-774 Fixed condition of the checking. Also the sound for Teleport offer will be played correctly now.

meow-7.2.2
Mnikolenko ProductEngine 2013-02-15 13:15:14 +02:00
parent 4aa22db037
commit c0433f1460
1 changed files with 5 additions and 5 deletions

View File

@ -120,11 +120,11 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification)
channel->addToast(p);
//Will not play a notification sound for inventory and teleport offer based upon chat preference
bool playSound = !((notification->isDND())
&& (notification->getName() == "UserGiveItem"
&& gSavedSettings.getBOOL("PlaySoundInventoryOffer") == FALSE)
|| notification->getName() == "TeleportOffered"
&& gSavedSettings.getBOOL("PlaySoundTeleportOffer") == FALSE);
bool playSound = (!notification->isDND()
&& ((notification->getName() == "UserGiveItem"
&& gSavedSettings.getBOOL("PlaySoundInventoryOffer"))
|| (notification->getName() == "TeleportOffered"
&& gSavedSettings.getBOOL("PlaySoundTeleportOffer"))));
if(playSound)
{