diff options
Diffstat (limited to 'indra/newview/llfloaterland.cpp')
-rw-r--r-- | indra/newview/llfloaterland.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index c1031ee437..488d71aa70 100644 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -744,6 +744,7 @@ void LLPanelLandGeneral::refreshNames() if (!parcel) { mTextOwner->setText(LLStringUtil::null); + mTextGroup->setText(LLStringUtil::null); return; } @@ -764,6 +765,13 @@ void LLPanelLandGeneral::refreshNames() } mTextOwner->setText(owner); + std::string group; + if (!parcel->getGroupID().isNull()) + { + group = LLSLURL::buildCommand("group", parcel->getGroupID(), "inspect"); + } + mTextGroup->setText(group); + const LLUUID& auth_buyer_id = parcel->getAuthorizedBuyerID(); if(auth_buyer_id.notNull()) { @@ -781,20 +789,6 @@ void LLPanelLandGeneral::refreshNames() // virtual void LLPanelLandGeneral::draw() { - LLParcel *parcel = mParcel->getParcel(); - if (parcel) - { - std::string group; - if (!parcel->getGroupID().isNull()) - { - // *TODO: Change to "inspect" when we have group inspectors and - // move into refreshNames() above - // group = LLSLURL::buildCommand("group", parcel->getGroupID(), "inspect"); - gCacheName->getGroupName(parcel->getGroupID(), group); - } - mTextGroup->setText(group); - } - LLPanel::draw(); } |