summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-04-08 18:23:35 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-04-08 18:23:35 +0300
commitf5c21ce1aef74bd79cbcb8c7a6cd4f9f4891c993 (patch)
tree7f4308a3f59a227265d075bf81f17532a10a7b4d
parent8c973c812b956bda1f1afa1d6be4b5fb9ffd7ce6 (diff)
MAINT-6320 Snapshot floater is stuck in 'Saving to Inventory' state.
-rw-r--r--indra/newview/llviewerassetupload.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewerassetupload.cpp b/indra/newview/llviewerassetupload.cpp
index f0dafec240..497ff4d2bf 100644
--- a/indra/newview/llviewerassetupload.cpp
+++ b/indra/newview/llviewerassetupload.cpp
@@ -837,5 +837,12 @@ void LLViewerAssetUpload::HandleUploadError(LLCore::HttpStatus status, LLSD &res
}
}
+ // Let the Snapshot floater know we have failed uploading.
+ LLFloater* floater_snapshot = LLFloaterReg::findInstance("snapshot");
+ if (uploadInfo->getAssetType() == LLAssetType::AT_TEXTURE && floater_snapshot)
+ {
+ floater_snapshot->notify(LLSD().with("set-finished", LLSD().with("ok", false).with("msg", "inventory")));
+ }
+
}