MAINT-6320 Snapshot floater is stuck in 'Saving to Inventory' state.

meow-7.2.2
andreykproductengine 2016-04-08 18:23:35 +03:00
parent 8c973c812b
commit f5c21ce1ae
1 changed files with 7 additions and 0 deletions

View File

@ -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")));
}
}