diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-12-10 12:32:51 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-12-10 12:32:51 +0200 |
commit | 015e979632eb1e9d68ee09ad58f937f2523c2a23 (patch) | |
tree | aafefdc7e25ad201babc9e330d08a05231993d4f /indra/newview/llinventorybridge.cpp | |
parent | 389cba01c6cbb2c436485e7d9180f63d37eeaa66 (diff) |
MAINT-1774 FIXED Don't open preview texture floater if user clicks "Cancel" button.
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rwxr-xr-x | indra/newview/llinventorybridge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 1910656066..1dc5558555 100755 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4462,11 +4462,11 @@ void LLTextureBridge::performAction(LLInventoryModel* model, std::string action) { if ("save_as" == action) { - LLFloaterReg::showInstance("preview_texture", LLSD(mUUID), TAKE_FOCUS_YES); - LLPreviewTexture* preview_texture = LLFloaterReg::findTypedInstance<LLPreviewTexture>("preview_texture", mUUID); + LLPreviewTexture* preview_texture = LLFloaterReg::getTypedInstance<LLPreviewTexture>("preview_texture", mUUID); if (preview_texture) { preview_texture->openToSave(); + preview_texture->saveAs(); } } else LLItemBridge::performAction(model, action); |