diff options
Diffstat (limited to 'indra/newview')
4 files changed, 14 insertions, 13 deletions
diff --git a/indra/newview/llfloatervoicedevicesettings.cpp b/indra/newview/llfloatervoicedevicesettings.cpp index bbeb287171..43024a4bd0 100644 --- a/indra/newview/llfloatervoicedevicesettings.cpp +++ b/indra/newview/llfloatervoicedevicesettings.cpp @@ -95,6 +95,9 @@ void LLPanelVoiceDeviceSettings::handleVisibilityChange ( BOOL new_visibility )  	else  	{  		cleanup(); +		// when closing this window, turn of visiblity control so that  +		// next time preferences is opened we don't suspend voice +		gSavedSettings.setBOOL("ShowDeviceSettings", FALSE);  	}  }  void LLPanelVoiceDeviceSettings::draw() diff --git a/indra/newview/llinspectavatar.cpp b/indra/newview/llinspectavatar.cpp index 9989a3b473..8dc7833f6a 100644 --- a/indra/newview/llinspectavatar.cpp +++ b/indra/newview/llinspectavatar.cpp @@ -47,6 +47,7 @@  #include "llstartup.h"  #include "llviewermenu.h"  #include "llvoiceclient.h" +#include "llviewerobjectlist.h"  // Linden libraries  #include "llfloater.h" @@ -113,6 +114,7 @@ private:  	void onClickFindOnMap();  	bool onVisibleFindOnMap();  	bool onVisibleFreezeEject(); +	bool onVisibleZoomIn();  	void onClickMuteVolume();  	void onVolumeChange(const LLSD& data); @@ -204,6 +206,8 @@ LLInspectAvatar::LLInspectAvatar(const LLSD& sd)  	mVisibleCallbackRegistrar.add("InspectAvatar.VisibleFindOnMap",	boost::bind(&LLInspectAvatar::onVisibleFindOnMap, this));	  	mVisibleCallbackRegistrar.add("InspectAvatar.VisibleFreezeEject",	  		boost::bind(&LLInspectAvatar::onVisibleFreezeEject, this));	 +	mVisibleCallbackRegistrar.add("InspectAvatar.VisibleZoomIn",  +		boost::bind(&LLInspectAvatar::onVisibleZoomIn, this));  	// can't make the properties request until the widgets are constructed  	// as it might return immediately, so do it in postBuild. @@ -479,6 +483,11 @@ bool LLInspectAvatar::onVisibleFreezeEject()  	return enable_freeze_eject( LLSD(mAvatarID) );  } +bool LLInspectAvatar::onVisibleZoomIn() +{ +	return gObjectList.findObject(mAvatarID); +} +  void LLInspectAvatar::onClickIM()  {   	LLAvatarActions::startIM(mAvatarID); diff --git a/indra/newview/skins/default/xui/en/menu_inspect_avatar_gear.xml b/indra/newview/skins/default/xui/en/menu_inspect_avatar_gear.xml index 8ee67b9a02..590621062c 100644 --- a/indra/newview/skins/default/xui/en/menu_inspect_avatar_gear.xml +++ b/indra/newview/skins/default/xui/en/menu_inspect_avatar_gear.xml @@ -91,6 +91,8 @@     name="zoom_in">
      <menu_item_call.on_click
       function="InspectAvatar.ZoomIn"/>
 +    <menu_item_call.on_visible
 +     function="InspectAvatar.VisibleZoomIn"/>
    </menu_item_call>  
    <menu_item_call
     label="Pay"
 diff --git a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml index c3e0cb352b..ba2ddd8b32 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml @@ -504,17 +504,4 @@       top_pad="0"       width="200" />      </panel> -          <!-- Until new panel is hooked up to code, we need to be able to get to -    the old window to change input devices. James --> -  <button -    follows="left|bottom" -    label="Old" -    name="legacy_device_window_btn" -    height="16" -    left="20" -    top="-270" -    width="40" -    commit_callback.function="Floater.Show" -    commit_callback.parameter="pref_voicedevicesettings" -    />      </panel>  | 
