summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-02-03 03:44:42 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-02-03 13:05:54 +0200
commit47aa16e8d5a3034f4e3472a7f69dce2193220faf (patch)
treeab0e53e4fd9bf1df873a9e9d160c1c8b9834b281 /indra/newview
parent556728c04a5cfb82ed4f7bd19b9b25b101e127c3 (diff)
#2293 Mark an object in an uncertain 'for sale' state as tentaive
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelpermissions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp
index cbf5819fda..cff09b0778 100644
--- a/indra/newview/llpanelpermissions.cpp
+++ b/indra/newview/llpanelpermissions.cpp
@@ -786,7 +786,9 @@ void LLPanelPermissions::refresh()
getChildView("Edit Cost")->setEnabled(change_sale_allowed && !is_for_sale_mixed);
// Set the checkbox to tentative if the prices of each object selected
// are not the same.
- getChild<LLUICtrl>("checkbox for sale")->setTentative( is_for_sale_mixed);
+ // If object is marked for sale yet is not transferable, mark as tentative,
+ // as it is in a state where it can't be sold
+ getChild<LLUICtrl>("checkbox for sale")->setTentative((!can_transfer && num_for_sale) || is_for_sale_mixed);
getChildView("sale type")->setEnabled(num_for_sale && can_transfer && !is_sale_price_mixed);
getChildView("Next owner can:")->setEnabled(true);