diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-01 18:03:43 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-01 18:03:43 +0100 |
commit | e562a200b69c39f60540019ef0ec7423ace04bef (patch) | |
tree | d7f501eeb7f104243c7a094b62f0b7728056f8f8 /indra/newview/llfloatersnapshot.cpp | |
parent | ab79bf7aaeaa0cbd7b2571601971cce97f9b4acd (diff) | |
parent | bb4836f53d98d987a1702f970d4b853eaa529907 (diff) |
merge from viewer-trunk
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
-rw-r--r-- | indra/newview/llfloatersnapshot.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index adac9861d4..357c10c6b6 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -977,7 +977,7 @@ LLFloaterPostcard* LLSnapshotLivePreview::savePostcard() } // Callback for asset upload -void profile_pic_upload_callback(const LLUUID& uuid) +void profile_pic_upload_callback(const LLUUID& uuid, void *user_data, S32 status, LLExtStat ext_status) { LLFloaterSnapshot* floater = LLFloaterReg::getTypedInstance<LLFloaterSnapshot>("snapshot"); floater->setAsProfilePic(uuid); @@ -1001,7 +1001,7 @@ void LLSnapshotLivePreview::saveTexture(bool set_as_profile_pic) if (formatted->encode(scaled, 0.0f)) { - boost::function<void(const LLUUID& uuid)> callback = NULL; + LLAssetStorage::LLStoreAssetCallback callback = NULL; if (set_as_profile_pic) { @@ -1014,17 +1014,19 @@ void LLSnapshotLivePreview::saveTexture(bool set_as_profile_pic) std::string who_took_it; LLAgentUI::buildFullname(who_took_it); S32 expected_upload_cost = LLGlobalEconomy::Singleton::getInstance()->getPriceUpload(); + std::string snapname = "Snapshot : " + pos_string; upload_new_resource(tid, // tid LLAssetType::AT_TEXTURE, - "Snapshot : " + pos_string, + snapname, "Taken by " + who_took_it + " at " + pos_string, + 0, LLFolderType::FT_SNAPSHOT_CATEGORY, LLInventoryType::IT_SNAPSHOT, PERM_ALL, // Note: Snapshots to inventory is a special case of content upload PERM_NONE, // that ignores the user's premissions preferences and continues to PERM_NONE, // always use these fairly permissive hard-coded initial perms. - MG - "Snapshot : " + pos_string, - callback, expected_upload_cost); + snapname, + callback, expected_upload_cost, NULL); gViewerWindow->playSnapshotAnimAndSound(); } else |