aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaternamedesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaternamedesc.cpp')
-rw-r--r--linden/indra/newview/llfloaternamedesc.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/linden/indra/newview/llfloaternamedesc.cpp b/linden/indra/newview/llfloaternamedesc.cpp
index 54a7261..4c0cefa 100644
--- a/linden/indra/newview/llfloaternamedesc.cpp
+++ b/linden/indra/newview/llfloaternamedesc.cpp
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -140,13 +140,6 @@ BOOL LLFloaterNameDesc::postBuild()
140 140
141 y -= llfloor(PREVIEW_LINE_HEIGHT * 1.2f); 141 y -= llfloor(PREVIEW_LINE_HEIGHT * 1.2f);
142 142
143 if (mIsAudio)
144 {
145 LLSD bitrate = gSavedSettings.getS32("AudioDefaultBitrate");
146
147 childSetValue("bitrate", bitrate);
148 }
149
150 // Cancel button 143 // Cancel button
151 childSetAction("cancel_btn", onBtnCancel, this); 144 childSetAction("cancel_btn", onBtnCancel, this);
152 145
@@ -206,16 +199,10 @@ void LLFloaterNameDesc::onBtnOK( void* userdata )
206 199
207 fp->childDisable("ok_btn"); // don't allow inadvertent extra uploads 200 fp->childDisable("ok_btn"); // don't allow inadvertent extra uploads
208 201
209 S32 bitrate = 0;
210
211 if (fp->mIsAudio)
212 {
213 bitrate = fp->childGetValue("bitrate").asInteger();
214 }
215 upload_new_resource(fp->mFilenameAndPath, // file 202 upload_new_resource(fp->mFilenameAndPath, // file
216 fp->childGetValue("name_form").asString(), 203 fp->childGetValue("name_form").asString(),
217 fp->childGetValue("description_form").asString(), 204 fp->childGetValue("description_form").asString(),
218 bitrate, LLAssetType::AT_NONE, LLInventoryType::IT_NONE); 205 0, LLAssetType::AT_NONE, LLInventoryType::IT_NONE);
219 fp->close(false); 206 fp->close(false);
220} 207}
221 208