diff options
| author | Andrew Dyukov <adyukov@productengine.com> | 2010-02-05 19:06:57 +0200 | 
|---|---|---|
| committer | Andrew Dyukov <adyukov@productengine.com> | 2010-02-05 19:06:57 +0200 | 
| commit | a46a029a70ead8e09810741abaf35c53adbd2763 (patch) | |
| tree | 5ee8067f5d25ec6cacdec26b71729a1c8de6fa10 /indra/newview | |
| parent | 790d72e781df91e4eb873187ac4ba5ea5be8d2c4 (diff) | |
Fixed normal bug EXT-4397 (Call isn't ended after disabling voice).
- Added customizing string with notification about ending call depending on voice availability.
- Added closing of open VCP if voice is disabled.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llcallfloater.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llimview.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_outgoing_call.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 1 | 
4 files changed, 19 insertions, 3 deletions
| diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp index 53ae001923..d405c1bbc1 100644 --- a/indra/newview/llcallfloater.cpp +++ b/indra/newview/llcallfloater.cpp @@ -721,7 +721,15 @@ void LLCallFloater::connectToChannel(LLVoiceChannel* channel)  void LLCallFloater::onVoiceChannelStateChanged(const LLVoiceChannel::EState& old_state, const LLVoiceChannel::EState& new_state)  { -	updateState(new_state); +	// check is voice operational and if it doesn't work hide VCP (EXT-4397) +	if(LLVoiceClient::voiceEnabled() && gVoiceClient->voiceWorking()) +	{ +		updateState(new_state); +	} +	else +	{ +		closeFloater(); +	}  }  void LLCallFloater::updateState(const LLVoiceChannel::EState& new_state) diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 0c64c2b032..b6032f4dfa 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -1610,6 +1610,13 @@ void LLOutgoingCallDialog::show(const LLSD& key)  		}  		childSetTextArg("nearby", "[VOICE_CHANNEL_NAME]", channel_name);  		childSetTextArg("nearby_P2P", "[VOICE_CHANNEL_NAME]", mPayload["disconnected_channel_name"].asString()); + +		// skipping "You will now be reconnected to nearby" in notification when call is ended by disabling voice, +		// so no reconnection to nearby chat happens (EXT-4397) +		bool voice_works = LLVoiceClient::voiceEnabled() && gVoiceClient->voiceWorking(); +		std::string reconnect_nearby = voice_works ? LLTrans::getString("reconnect_nearby") : std::string(); +		childSetTextArg("nearby", "[RECONNECT_NEARBY]", reconnect_nearby); +		childSetTextArg("nearby_P2P", "[RECONNECT_NEARBY]", reconnect_nearby);  	}  	std::string callee_name = mPayload["session_name"].asString(); diff --git a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml index eb772cc0bd..cc9afe4474 100644 --- a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml +++ b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml @@ -89,7 +89,7 @@ No Answer.  Please try again later.     top="27"     width="315"     word_wrap="true"> -    You have been disconnected from [VOICE_CHANNEL_NAME].  You will now be reconnected to Nearby Voice Chat. +    You have been disconnected from [VOICE_CHANNEL_NAME].  [RECONNECT_NEARBY]    </text>    <text     font="SansSerifLarge" @@ -100,7 +100,7 @@ No Answer.  Please try again later.     top="27"     width="315"     word_wrap="true"> -    [VOICE_CHANNEL_NAME] has ended the call.  You will now be reconnected to Nearby Voice Chat. +    [VOICE_CHANNEL_NAME] has ended the call.  [RECONNECT_NEARBY]    </text>    <text       font="SansSerif" diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index d6db451286..a5dc14c69d 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -251,6 +251,7 @@  	<string name="connected">Connected</string>  	<string name="unavailable">Voice not available at your current location</string>  	<string name="hang_up">Disconnected from in-world Voice Chat</string> +  <string name="reconnect_nearby">You will now be reconnected to Nearby Voice Chat</string>  	<string name="ScriptQuestionCautionChatGranted">'[OBJECTNAME]', an object owned by '[OWNERNAME]', located in [REGIONNAME] at [REGIONPOS], has been granted permission to: [PERMISSIONS].</string>  	<string name="ScriptQuestionCautionChatDenied">'[OBJECTNAME]', an object owned by '[OWNERNAME]', located in [REGIONNAME] at [REGIONPOS], has been denied permission to: [PERMISSIONS].</string>  	<string name="ScriptTakeMoney">Take Linden dollars (L$) from you</string> | 
