diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpanelimcontrolpanel.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llpanelimcontrolpanel.h | 1 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 3 | 
3 files changed, 10 insertions, 0 deletions
| diff --git a/indra/newview/llpanelimcontrolpanel.cpp b/indra/newview/llpanelimcontrolpanel.cpp index 00502341fc..5e23662a0b 100644 --- a/indra/newview/llpanelimcontrolpanel.cpp +++ b/indra/newview/llpanelimcontrolpanel.cpp @@ -44,6 +44,7 @@  #include "llimview.h"  #include "llvoicechannel.h"  #include "llsidetray.h" +#include "lltrans.h"  void LLPanelChatControlPanel::onCallButtonClicked()  { @@ -161,6 +162,11 @@ void LLPanelIMControlPanel::onShareButtonClicked()  {  	LLSD key;  	LLSideTray::getInstance()->showPanel("sidepanel_inventory", key); + +	if (gIMMgr->hasSession(getSessionId())) +	{ +		LLIMModel::getInstance()->addMessage(getSessionId(), SYSTEM_FROM, LLUUID::null, LLTrans::getString("share_alert"), false); +	}  }  void LLPanelIMControlPanel::setSessionId(const LLUUID& session_id) diff --git a/indra/newview/llpanelimcontrolpanel.h b/indra/newview/llpanelimcontrolpanel.h index 923c5acbd2..7bfc432ef2 100644 --- a/indra/newview/llpanelimcontrolpanel.h +++ b/indra/newview/llpanelimcontrolpanel.h @@ -58,6 +58,7 @@ public:  	virtual void onVoiceChannelStateChanged(const LLVoiceChannel::EState& old_state, const LLVoiceChannel::EState& new_state);  	virtual void setSessionId(const LLUUID& session_id); +	const LLUUID& getSessionId() { return mSessionId; }  private:  	LLUUID mSessionId; diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index a5272d1883..e76763d7eb 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2868,6 +2868,9 @@ If you continue to receive this message, contact the [SUPPORT_SITE].    <string name="inventory_item_offered-im">      Inventory item offered    </string> +  <string name="share_alert"> +    Drag items from inventory here +  </string>    <string name="only_user_message">      You are the only user in this session. | 
