diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2018-03-22 12:21:38 +0200 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2018-03-22 12:21:38 +0200 |
commit | 00c6c29daf1250f4be217077fd3156e799f65e91 (patch) | |
tree | ffeccd64327844769f480c117a7de0b6e0667a0f /indra/newview | |
parent | 925ae4cf38b9704051714c5e1e8108e2d2050edd (diff) |
MAINT-8403 Restore fail case for general upload snapshot
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewerassetupload.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llviewerassetupload.cpp b/indra/newview/llviewerassetupload.cpp index 477b3a6f8d..346b2c0d1b 100644 --- a/indra/newview/llviewerassetupload.cpp +++ b/indra/newview/llviewerassetupload.cpp @@ -865,10 +865,18 @@ void LLViewerAssetUpload::HandleUploadError(LLCore::HttpStatus status, LLSD &res // Let the Snapshot floater know we have failed uploading. LLFloaterSnapshot* floater_snapshot = LLFloaterSnapshot::findInstance(); - if (uploadInfo->getAssetType() == LLAssetType::AT_IMAGE_JPEG && floater_snapshot && floater_snapshot->isWaitingState()) + if (floater_snapshot && floater_snapshot->isWaitingState()) { - floater_snapshot->notify(LLSD().with("set-finished", LLSD().with("ok", false).with("msg", "postcard"))); + if (uploadInfo->getAssetType() == LLAssetType::AT_IMAGE_JPEG) + { + floater_snapshot->notify(LLSD().with("set-finished", LLSD().with("ok", false).with("msg", "postcard"))); + } + if (uploadInfo->getAssetType() == LLAssetType::AT_TEXTURE) + { + floater_snapshot->notify(LLSD().with("set-finished", LLSD().with("ok", false).with("msg", "inventory"))); + } } + LLFloater* floater_outfit_snapshot = LLFloaterReg::findInstance("outfit_snapshot"); if (uploadInfo->getAssetType() == LLAssetType::AT_TEXTURE && floater_outfit_snapshot && floater_outfit_snapshot->isShown()) { |