diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llfloaterreporter.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2 meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz |
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llfloaterreporter.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterreporter.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp index 7ab0aca..f0af5d0 100644 --- a/linden/indra/newview/llfloaterreporter.cpp +++ b/linden/indra/newview/llfloaterreporter.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, |
@@ -131,12 +131,7 @@ LLFloaterReporter::LLFloaterReporter( | |||
131 | gUICtrlFactory->buildFloater(this, "floater_report_abuse.xml"); | 131 | gUICtrlFactory->buildFloater(this, "floater_report_abuse.xml"); |
132 | } | 132 | } |
133 | 133 | ||
134 | LLViewerRegion *regionp = gAgent.getRegion(); | 134 | childSetText("abuse_location_edit", gAgent.getSLURL() ); |
135 | if (regionp) | ||
136 | { | ||
137 | childSetText("sim_field", regionp->getName() ); | ||
138 | childSetText("abuse_location_edit", regionp->getName() ); | ||
139 | } | ||
140 | 135 | ||
141 | LLButton* pick_btn = LLUICtrlFactory::getButtonByName(this, "pick_btn"); | 136 | LLButton* pick_btn = LLUICtrlFactory::getButtonByName(this, "pick_btn"); |
142 | if (pick_btn) | 137 | if (pick_btn) |
@@ -163,6 +158,7 @@ LLFloaterReporter::LLFloaterReporter( | |||
163 | 158 | ||
164 | // convert the position to a string | 159 | // convert the position to a string |
165 | LLVector3d pos = gAgent.getPositionGlobal(); | 160 | LLVector3d pos = gAgent.getPositionGlobal(); |
161 | LLViewerRegion *regionp = gAgent.getRegion(); | ||
166 | if (regionp) | 162 | if (regionp) |
167 | { | 163 | { |
168 | pos -= regionp->getOriginGlobal(); | 164 | pos -= regionp->getOriginGlobal(); |
@@ -669,7 +665,7 @@ LLSD LLFloaterReporter::gatherReport() | |||
669 | LLComboBox* combo = LLUICtrlFactory::getComboBoxByName(this, "category_combo"); | 665 | LLComboBox* combo = LLUICtrlFactory::getComboBoxByName(this, "category_combo"); |
670 | if (combo) | 666 | if (combo) |
671 | { | 667 | { |
672 | category_name = combo->getSimpleSelectedItem(); // want label, not value | 668 | category_name = combo->getSelectedItemLabel(); // want label, not value |
673 | } | 669 | } |
674 | 670 | ||
675 | #if LL_WINDOWS | 671 | #if LL_WINDOWS |