diff options
| author | Igor Borovkov <iborovkov@productengine.com> | 2010-01-20 18:23:23 +0200 | 
|---|---|---|
| committer | Igor Borovkov <iborovkov@productengine.com> | 2010-01-20 18:23:23 +0200 | 
| commit | 9c277d95b6ed91fd43aa70c433db21ae44799f42 (patch) | |
| tree | 5061c70a39449d809124ecd43f773077418b04a7 | |
| parent | 5f2669ab62b284759d0f471bca26549a1387d269 (diff) | |
fixed EXT-4162 Remove "Show IMs in Nearby Chat"
--HG--
branch : product-engine
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 11 | ||||
| -rw-r--r-- | indra/newview/llfloaterchat.cpp | 16 | ||||
| -rw-r--r-- | indra/newview/llfloaterchat.h | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/menu_viewer.xml | 11 | 
4 files changed, 3 insertions, 37 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 69336243da..53ac1dc0b9 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -3664,17 +3664,6 @@        <key>Value</key>        <string />      </map> -    <key>IMInChat</key> -    <map> -      <key>Comment</key> -      <string>Copy IM into chat console</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>0</integer> -    </map>      <key>IMShowTimestamps</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index c24c224133..cdb9b8edb8 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -311,7 +311,7 @@ void LLFloaterChat::onClickToggleShowMute(LLUICtrl* caller, void *data)  }  // Put a line of chat in all the right places -void LLFloaterChat::addChat(const LLChat& chat, BOOL from_instant_message, BOOL local_agent) +void LLFloaterChat::addChat(const LLChat& chat, BOOL local_agent)  {  	triggerAlerts(chat.mText); @@ -321,19 +321,7 @@ void LLFloaterChat::addChat(const LLChat& chat, BOOL from_instant_message, BOOL  	//if(chat.mSourceType == CHAT_SOURCE_AGENT && chat.mFromID.notNull())  	//	LLRecentPeople::instance().add(chat.mFromID); -	bool add_chat = true; -	bool log_chat = true; -	if(from_instant_message) -	{ -		if (!gSavedSettings.getBOOL("IMInChat")) -			add_chat = false; -		//log_chat = false; -} -	 -	if (add_chat) -	{ -		addChatHistory(chat, log_chat); -	} +	addChatHistory(chat, true);  }  // Moved from lltextparser.cpp to break llui/llaudio library dependency. diff --git a/indra/newview/llfloaterchat.h b/indra/newview/llfloaterchat.h index 84fc199bfa..4437a0a5c2 100644 --- a/indra/newview/llfloaterchat.h +++ b/indra/newview/llfloaterchat.h @@ -61,7 +61,7 @@ public:  	//  *TODO:Skinning - move these to LLChat (or LLViewerChat?)  	// Add chat to console and history list.  	// Color based on source, type, distance. -	static void addChat(const LLChat& chat, BOOL from_im = FALSE, BOOL local_agent = FALSE); +	static void addChat(const LLChat& chat, BOOL local_agent = FALSE);  	// Add chat to history alone.  	static void addChatHistory(const LLChat& chat, bool log_to_file = true); diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index 21fe2bb242..a98a049c17 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -1603,17 +1603,6 @@               function="ToggleControl"               parameter="MouseSmooth" />          </menu_item_check> -        <menu_item_check -         label="Show IMs in Nearby Chat" -         layout="topleft" -         name="IMInChat"> -            <menu_item_check.on_check -             function="CheckControl" -             parameter="IMInChat" /> -            <menu_item_check.on_click -             function="ToggleControl" -             parameter="IMInChat" /> -        </menu_item_check>          <menu_item_separator           layout="topleft" />          <menu  | 
