diff options
| author | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-12-09 17:25:29 -0500 |
|---|---|---|
| committer | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-12-09 17:25:29 -0500 |
| commit | 6e95fbd3c30cb98ea1b64f1976aef0e681a6fe80 (patch) | |
| tree | 69ce3ac5b34398bf543ba184ddd3c65f56173e12 /indra/newview/llpreviewtexture.cpp | |
| parent | 204ae550d8b70cdae29f5d4504cc35406682c336 (diff) | |
| parent | dc8365ff00c5ae33f31d779efa23f7872ec368a7 (diff) | |
Automated merge with ssh://hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra/newview/llpreviewtexture.cpp')
| -rw-r--r-- | indra/newview/llpreviewtexture.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 698f6152b4..8fa147f201 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -145,6 +145,8 @@ BOOL LLPreviewTexture::postBuild() childSetVisible("Discard", false); } + childSetAction("save_tex_btn", LLPreviewTexture::onSaveAsBtn, this); + if (!mCopyToInv) { const LLInventoryItem* item = getItem(); @@ -164,6 +166,13 @@ BOOL LLPreviewTexture::postBuild() return LLPreview::postBuild(); } +// static +void LLPreviewTexture::onSaveAsBtn(void* data) +{ + LLPreviewTexture* self = (LLPreviewTexture*)data; + self->saveAs(); +} + void LLPreviewTexture::draw() { if (mUpdateDimensions) |
