diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llpanelpermissions.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/llpanelpermissions.cpp')
-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) |