diff options
| -rw-r--r-- | indra/llcharacter/llkeyframemotion.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llgrouplist.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llinspectgroup.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llnotificationofferhandler.cpp | 26 | ||||
| -rw-r--r-- | indra/newview/lltoolmgr.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 6 | 
6 files changed, 24 insertions, 21 deletions
| diff --git a/indra/llcharacter/llkeyframemotion.cpp b/indra/llcharacter/llkeyframemotion.cpp index cd201a65b4..e786dfff86 100644 --- a/indra/llcharacter/llkeyframemotion.cpp +++ b/indra/llcharacter/llkeyframemotion.cpp @@ -2149,7 +2149,7 @@ void LLKeyframeMotion::onLoadComplete(LLVFS *vfs,  	LLCharacter* character = *char_iter;  	// look for an existing instance of this motion -	LLKeyframeMotion* motionp = (LLKeyframeMotion*) character->findMotion(asset_uuid); +	LLKeyframeMotion* motionp = dynamic_cast<LLKeyframeMotion*> (character->findMotion(asset_uuid));  	if (motionp)  	{  		if (0 == status) diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp index 6126db2988..62414d3bbb 100644 --- a/indra/newview/llgrouplist.cpp +++ b/indra/newview/llgrouplist.cpp @@ -379,10 +379,7 @@ void LLGroupListItem::setGroupID(const LLUUID& group_id)  void LLGroupListItem::setGroupIconID(const LLUUID& group_icon_id)  { -	if (group_icon_id.notNull()) -	{ -		mGroupIcon->setIconId(group_icon_id); -	} +	mGroupIcon->setIconId(group_icon_id);  }  void LLGroupListItem::setGroupIconVisible(bool visible) diff --git a/indra/newview/llinspectgroup.cpp b/indra/newview/llinspectgroup.cpp index 0c5a91e48a..a4fce36783 100644 --- a/indra/newview/llinspectgroup.cpp +++ b/indra/newview/llinspectgroup.cpp @@ -41,6 +41,7 @@  #include "lltooltip.h"	// positionViewNearMouse()  #include "lltrans.h"  #include "lluictrl.h" +#include "llgroupiconctrl.h"  //////////////////////////////////////////////////////////////////////////////  // LLInspectGroup @@ -233,8 +234,7 @@ void LLInspectGroup::processGroupData()  		getChild<LLUICtrl>("group_details")->setValue( LLSD(data->mCharter) ); -		// LLGroupIconCtrl -		getChild<LLUICtrl>("group_icon")->setValue(LLSD(mGroupID)); +		getChild<LLGroupIconCtrl>("group_icon")->setIconId(data->mInsigniaID);  		std::string cost;  		bool is_member = LLGroupActions::isInGroup(mGroupID); diff --git a/indra/newview/llnotificationofferhandler.cpp b/indra/newview/llnotificationofferhandler.cpp index 2657b84ef3..63ab88da42 100644 --- a/indra/newview/llnotificationofferhandler.cpp +++ b/indra/newview/llnotificationofferhandler.cpp @@ -96,17 +96,21 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification)  			LLUUID from_id = notification->getPayload()["from_id"]; -			//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")) -			                  || (notification->getName() == "TeleportOffered" -			                  && gSavedSettings.getBOOL("PlaySoundTeleportOffer")))); - -			            if(playSound) -			            { -			                notification->playSound(); -			            } +			if (!notification->isDND()) +			{ +				//Will not play a notification sound for inventory and teleport offer based upon chat preference +				bool playSound = (notification->getName() == "UserGiveItem" +								  && gSavedSettings.getBOOL("PlaySoundInventoryOffer")) +								 || ((notification->getName() == "TeleportOffered" +								     || notification->getName() == "TeleportOffered_MaturityExceeded" +								     || notification->getName() == "TeleportOffered_MaturityBlocked") +								    && gSavedSettings.getBOOL("PlaySoundTeleportOffer")); + +				if (playSound) +				{ +					notification->playSound(); +				} +			}  			LLHandlerUtil::spawnIMSession(name, from_id);  			LLHandlerUtil::addNotifPanelToIM(notification); diff --git a/indra/newview/lltoolmgr.cpp b/indra/newview/lltoolmgr.cpp index b0e3b5bf89..f6eb290bc3 100644 --- a/indra/newview/lltoolmgr.cpp +++ b/indra/newview/lltoolmgr.cpp @@ -267,7 +267,7 @@ bool LLToolMgr::canEdit()  bool LLToolMgr::buildEnabledOrActive()  { -	return inEdit() || canEdit(); +	return LLFloaterReg::instanceVisible("build") || canEdit();  }  void LLToolMgr::toggleBuildMode(const LLSD& sdname) diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 3fe21a261c..79ee35fe3e 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -7407,7 +7407,8 @@ Your object named <nolink>[OBJECTFROMNAME]</nolink> has given you th     name="TeleportOffered_MaturityExceeded"     log_to_im="true"     log_to_chat="false" -   type="offer"> +   type="offer" +   sound="UISndNewIncomingIMSession">  [NAME_SLURL] has offered to teleport you to their location:  “[MESSAGE]” @@ -7432,7 +7433,8 @@ This region contains [REGION_CONTENT_MATURITY] content, but your current prefere     name="TeleportOffered_MaturityBlocked"     log_to_im="true"     log_to_chat="false" -   type="notifytip"> +   type="notifytip" +   sound="UISndNewIncomingIMSession">  [NAME_SLURL] has offered to teleport you to their location:  “[MESSAGE]” | 
