diff options
author | Igor Borovkov <iborovkov@productengine.com> | 2010-03-12 12:09:22 +0200 |
---|---|---|
committer | Igor Borovkov <iborovkov@productengine.com> | 2010-03-12 12:09:22 +0200 |
commit | 61e6c888f04bdcf2e9c0b4cb9754c7827f831e35 (patch) | |
tree | 2944ed2ccabd67e017a8f52e6d039c3fbe77a6ca /indra/newview/llfloaterland.cpp | |
parent | ecc02f34201bc3ae0240da2365384e4f08854355 (diff) |
fixed EXT-3607 (Cancelling a Land Sale to Specific Person Allows Land to be Set For Sale to Anyone Briefly)
added additional check so that "for sale to anyone" text is shown only when a parcel is on sale
reviewed by Richard at https://codereview.productengine.com/secondlife/r/4/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llfloaterland.cpp')
-rw-r--r-- | indra/newview/llfloaterland.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index 26a179074d..65003d9b5c 100644 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -820,16 +820,19 @@ void LLPanelLandGeneral::refreshNames() } mTextGroup->setText(group); - const LLUUID& auth_buyer_id = parcel->getAuthorizedBuyerID(); - if(auth_buyer_id.notNull()) + if (parcel->getForSale()) { - std::string name; - name = LLSLURL::buildCommand("agent", auth_buyer_id, "inspect"); - mSaleInfoForSale2->setTextArg("[BUYER]", name); - } - else - { - mSaleInfoForSale2->setTextArg("[BUYER]", getString("anyone")); + const LLUUID& auth_buyer_id = parcel->getAuthorizedBuyerID(); + if(auth_buyer_id.notNull()) + { + std::string name; + name = LLSLURL::buildCommand("agent", auth_buyer_id, "inspect"); + mSaleInfoForSale2->setTextArg("[BUYER]", name); + } + else + { + mSaleInfoForSale2->setTextArg("[BUYER]", getString("anyone")); + } } } |