summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpick.cpp
diff options
context:
space:
mode:
authorskolb <none@none>2009-10-23 15:34:15 -0700
committerskolb <none@none>2009-10-23 15:34:15 -0700
commit2b69cb9e9cf5209a8156580b74e6662e4cc4243f (patch)
treef38805b6ca5b60e8c0130259865dc610eaee7a0b /indra/newview/llpanelpick.cpp
parent913786a62b2b8d8e6d9c483ea805a21e694fd818 (diff)
parent4ddaa866dde7a92e56617a32464e0667de3759ef (diff)
Merged change to auto play pref (DEV-41787)
Diffstat (limited to 'indra/newview/llpanelpick.cpp')
-rw-r--r--indra/newview/llpanelpick.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelpick.cpp b/indra/newview/llpanelpick.cpp
index cb9f641bf8..e725479abb 100644
--- a/indra/newview/llpanelpick.cpp
+++ b/indra/newview/llpanelpick.cpp
@@ -46,6 +46,7 @@
#include "lltexteditor.h"
#include "lltexturectrl.h"
#include "lluiconstants.h"
+#include "llviewerregion.h"
#include "llworldmap.h"
#include "llfloaterworldmap.h"
#include "llfloaterreg.h"
@@ -348,6 +349,15 @@ void LLPanelPickEdit::onOpen(const LLSD& key)
snapshot_id = parcel->getSnapshotID();
}
+ if(pick_name.empty())
+ {
+ LLViewerRegion* region = gAgent.getRegion();
+ if(region)
+ {
+ pick_name = region->getName();
+ }
+ }
+
setParcelID(parcel_id);
childSetValue("pick_name", pick_name);
childSetValue("pick_desc", pick_desc);