diff options
Diffstat (limited to 'indra/newview/llpreviewtexture.cpp')
| -rw-r--r-- | indra/newview/llpreviewtexture.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 698f6152b4..86475fe2dc 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -145,6 +145,9 @@ BOOL LLPreviewTexture::postBuild()  		childSetVisible("Discard", false);  	} +	childSetAction("save_tex_btn", LLPreviewTexture::onSaveAsBtn, this); +	childSetVisible("save_tex_btn", canSaveAs()); +	  	if (!mCopyToInv)   	{  		const LLInventoryItem* item = getItem(); @@ -164,6 +167,13 @@ BOOL LLPreviewTexture::postBuild()  	return LLPreview::postBuild();  } +// static +void LLPreviewTexture::onSaveAsBtn(void* data) +{ +	LLPreviewTexture* self = (LLPreviewTexture*)data; +	self->saveAs(); +} +  void LLPreviewTexture::draw()  {  	if (mUpdateDimensions) | 
