diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelpermissions.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/linden/indra/newview/llpanelpermissions.cpp b/linden/indra/newview/llpanelpermissions.cpp index 18ec28e..6e8a4ff 100644 --- a/linden/indra/newview/llpanelpermissions.cpp +++ b/linden/indra/newview/llpanelpermissions.cpp | |||
@@ -726,14 +726,17 @@ void LLPanelPermissions::refresh() | |||
726 | LLSaleInfo::EForSale sale_type = sale_info.getSaleType(); | 726 | LLSaleInfo::EForSale sale_type = sale_info.getSaleType(); |
727 | 727 | ||
728 | LLRadioGroup* RadioSaleType = gUICtrlFactory->getRadioGroupByName(this,"sale type"); | 728 | LLRadioGroup* RadioSaleType = gUICtrlFactory->getRadioGroupByName(this,"sale type"); |
729 | if(RadioSaleType && valid_sale_info) | 729 | if(RadioSaleType) |
730 | { | 730 | { |
731 | RadioSaleType->setSelectedIndex((S32)sale_type - 1); | 731 | if (valid_sale_info) |
732 | } | 732 | { |
733 | else | 733 | RadioSaleType->setSelectedIndex((S32)sale_type - 1); |
734 | { | 734 | } |
735 | // default option is sell copy, determined to be safest | 735 | else |
736 | RadioSaleType->setSelectedIndex((S32)LLSaleInfo::FS_COPY - 1); | 736 | { |
737 | // default option is sell copy, determined to be safest | ||
738 | RadioSaleType->setSelectedIndex((S32)LLSaleInfo::FS_COPY - 1); | ||
739 | } | ||
737 | } | 740 | } |
738 | 741 | ||
739 | if (is_for_sale) | 742 | if (is_for_sale) |