diff options
| author | Alexei Arabadji <aarabadji@productengine.com> | 2010-02-24 12:44:12 +0200 | 
|---|---|---|
| committer | Alexei Arabadji <aarabadji@productengine.com> | 2010-02-24 12:44:12 +0200 | 
| commit | 172d9b21ab26927ec35a9210c4e9ce2ec24c9509 (patch) | |
| tree | 041caaa69980ba1bcb0a00c7741b95dd1a4db8cd /indra | |
| parent | a4589431d9db0cb63e79266bb40c010467b624c4 (diff) | |
| parent | d7945e5d31f3cf8da0e21d417ad07459b12e8711 (diff) | |
Automated merge with https://hg.productengine.com/secondlife/viewer-2-0/
--HG--
branch : product-engine
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/lldockablefloater.cpp | 8 | ||||
| -rw-r--r-- | indra/llui/lldockablefloater.h | 2 | ||||
| -rw-r--r-- | indra/newview/llimfloater.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llscriptfloater.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_camera.xml | 1 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_moveview.xml | 1 | 
6 files changed, 10 insertions, 8 deletions
| diff --git a/indra/llui/lldockablefloater.cpp b/indra/llui/lldockablefloater.cpp index 0492ab0f25..3d8670fef2 100644 --- a/indra/llui/lldockablefloater.cpp +++ b/indra/llui/lldockablefloater.cpp @@ -202,10 +202,6 @@ void LLDockableFloater::setDocked(bool docked, bool pop_on_undock)  			translate(0, UNDOCK_LEAP_HEIGHT);  		}  	} -	else -	{ -		docked = false; -	}  	LLFloater::setDocked(docked, pop_on_undock);  } @@ -223,10 +219,10 @@ void LLDockableFloater::draw()  	LLFloater::draw();  } -void LLDockableFloater::setDockControl(LLDockControl* dockControl, bool docked /* = true */) +void LLDockableFloater::setDockControl(LLDockControl* dockControl)  {  	mDockControl.reset(dockControl); -	setDocked(docked && mDockControl.get() != NULL && mDockControl.get()->isDockVisible()); +	setDocked(isDocked());  }  const LLUIImagePtr& LLDockableFloater::getDockTongue() diff --git a/indra/llui/lldockablefloater.h b/indra/llui/lldockablefloater.h index 4d747390af..2b1ce99ae2 100644 --- a/indra/llui/lldockablefloater.h +++ b/indra/llui/lldockablefloater.h @@ -127,7 +127,7 @@ private:  	void resetInstance();  protected: -	void setDockControl(LLDockControl* dockControl, bool docked = true); +	void setDockControl(LLDockControl* dockControl);  	const LLUIImagePtr& getDockTongue();  private: diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 098e540678..8cdc50eb70 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -112,6 +112,8 @@ LLIMFloater::LLIMFloater(const LLUUID& session_id)  	setOverlapsScreenChannel(true);  	LLTransientFloaterMgr::getInstance()->addControlView(LLTransientFloaterMgr::IM, this); + +	setDocked(true);  }  void LLIMFloater::onFocusLost() diff --git a/indra/newview/llscriptfloater.cpp b/indra/newview/llscriptfloater.cpp index a88a242fbe..32fd42aded 100644 --- a/indra/newview/llscriptfloater.cpp +++ b/indra/newview/llscriptfloater.cpp @@ -283,7 +283,9 @@ void LLScriptFloater::dockToChiclet(bool dock)  		setSavePosition(false);  		setDockControl(new LLDockControl(chiclet, this, getDockTongue(), -			LLDockControl::TOP,  boost::bind(&LLScriptFloater::getAllowedRect, this, _1)), dock); +			LLDockControl::TOP,  boost::bind(&LLScriptFloater::getAllowedRect, this, _1))); + +		setDocked(dock);  		// Restore saving  		setSavePosition(save); diff --git a/indra/newview/skins/default/xui/en/floater_camera.xml b/indra/newview/skins/default/xui/en/floater_camera.xml index 2bd8420925..1b8bbe42d2 100644 --- a/indra/newview/skins/default/xui/en/floater_camera.xml +++ b/indra/newview/skins/default/xui/en/floater_camera.xml @@ -12,6 +12,7 @@   help_topic="camera_floater"   save_rect="true"   save_visibility="true" + save_dock_state="true"   single_instance="true"   width="150">      <floater.string diff --git a/indra/newview/skins/default/xui/en/floater_moveview.xml b/indra/newview/skins/default/xui/en/floater_moveview.xml index 851a689d42..0a5820ce73 100644 --- a/indra/newview/skins/default/xui/en/floater_moveview.xml +++ b/indra/newview/skins/default/xui/en/floater_moveview.xml @@ -12,6 +12,7 @@   help_topic="move_floater"   save_rect="true"   save_visibility="true" + save_dock_state="true"   width="115">      <string       name="walk_forward_tooltip"> | 
