diff options
author | Rider Linden <rider@lindenlab.com> | 2015-07-02 14:39:12 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-07-02 14:39:12 -0700 |
commit | f00cd0ab9fde7377e859942a66fc47649d854a1c (patch) | |
tree | 78be539f867f617a96db3179110dc3cc071c2906 /indra/newview/llfloaternamedesc.cpp | |
parent | d785ec312bb7f4e77517eb44f46f276ba0129677 (diff) |
Crash on second add to coproc queue.
Diffstat (limited to 'indra/newview/llfloaternamedesc.cpp')
-rwxr-xr-x | indra/newview/llfloaternamedesc.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llfloaternamedesc.cpp b/indra/newview/llfloaternamedesc.cpp index 0cca715fe2..4960ecf5fe 100755 --- a/indra/newview/llfloaternamedesc.cpp +++ b/indra/newview/llfloaternamedesc.cpp @@ -164,6 +164,19 @@ void LLFloaterNameDesc::onBtnOK( ) void *nruserdata = NULL; std::string display_name = LLStringUtil::null; + NewResourceUploadInfo::ptr_t uploadInfo(new NewFileResourceUploadInfo( + mFilenameAndPath, + getChild<LLUICtrl>("name_form")->getValue().asString(), + getChild<LLUICtrl>("description_form")->getValue().asString(), 0, + LLFolderType::FT_NONE, LLInventoryType::IT_NONE, + LLFloaterPerms::getNextOwnerPerms("Uploads"), + LLFloaterPerms::getGroupPerms("Uploads"), + LLFloaterPerms::getEveryonePerms("Uploads"), + expected_upload_cost)); + + upload_new_resource(uploadInfo, callback, nruserdata); + +#if 0 upload_new_resource(mFilenameAndPath, // file getChild<LLUICtrl>("name_form")->getValue().asString(), getChild<LLUICtrl>("description_form")->getValue().asString(), @@ -172,6 +185,8 @@ void LLFloaterNameDesc::onBtnOK( ) LLFloaterPerms::getGroupPerms("Uploads"), LLFloaterPerms::getEveryonePerms("Uploads"), display_name, callback, expected_upload_cost, nruserdata); +#endif + closeFloater(false); } |