diff options
author | Jacek Antonelli | 2008-08-15 23:45:17 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:17 -0500 |
commit | 7c207214b86dc5675e2d136cc34e9b209209dc4b (patch) | |
tree | dfbdef0c039221cfadd7c26c839f446064263ddd /linden/indra/newview/llpanelpermissions.cpp | |
parent | Second Life viewer sources 1.18.5.0-RC (diff) | |
download | meta-impy-7c207214b86dc5675e2d136cc34e9b209209dc4b.zip meta-impy-7c207214b86dc5675e2d136cc34e9b209209dc4b.tar.gz meta-impy-7c207214b86dc5675e2d136cc34e9b209209dc4b.tar.bz2 meta-impy-7c207214b86dc5675e2d136cc34e9b209209dc4b.tar.xz |
Second Life viewer sources 1.18.5.1-RC
Diffstat (limited to 'linden/indra/newview/llpanelpermissions.cpp')
-rw-r--r-- | linden/indra/newview/llpanelpermissions.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llpanelpermissions.cpp b/linden/indra/newview/llpanelpermissions.cpp index 923f4b3..7beba92 100644 --- a/linden/indra/newview/llpanelpermissions.cpp +++ b/linden/indra/newview/llpanelpermissions.cpp | |||
@@ -741,17 +741,17 @@ void LLPanelPermissions::refresh() | |||
741 | } | 741 | } |
742 | } | 742 | } |
743 | 743 | ||
744 | if (is_for_sale) | 744 | childSetValue("checkbox for sale", is_for_sale); |
745 | |||
746 | // HACK: There are some old objects in world that are set for sale, | ||
747 | // but are no-transfer. We need to let users turn for-sale off, but only | ||
748 | // if for-sale is set. | ||
749 | bool cannot_actually_sell = !can_transfer || (!can_copy && sale_type == LLSaleInfo::FS_COPY); | ||
750 | if (is_for_sale && has_change_sale_ability && cannot_actually_sell) | ||
745 | { | 751 | { |
746 | childSetValue("checkbox for sale",TRUE); | 752 | childSetEnabled("checkbox for sale", true); |
747 | childSetTentative("checkbox for sale",!can_transfer || (!can_copy && sale_type == LLSaleInfo::FS_COPY)); | ||
748 | } | 753 | } |
749 | else | 754 | |
750 | { | ||
751 | childSetValue("checkbox for sale",FALSE); | ||
752 | childSetTentative("checkbox for sale",false); | ||
753 | } | ||
754 | |||
755 | // Check search status of objects | 755 | // Check search status of objects |
756 | BOOL all_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME ); | 756 | BOOL all_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME ); |
757 | bool include_in_search; | 757 | bool include_in_search; |