diff options
Diffstat (limited to 'linden/indra/newview/llinventoryview.cpp')
-rw-r--r-- | linden/indra/newview/llinventoryview.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp index 0f1eb2b..8e8e894 100644 --- a/linden/indra/newview/llinventoryview.cpp +++ b/linden/indra/newview/llinventoryview.cpp | |||
@@ -765,7 +765,17 @@ void LLInventoryView::setVisible( BOOL visible ) | |||
765 | // Destroy all but the last floater, which is made invisible. | 765 | // Destroy all but the last floater, which is made invisible. |
766 | void LLInventoryView::onClose(bool app_quitting) | 766 | void LLInventoryView::onClose(bool app_quitting) |
767 | { | 767 | { |
768 | S32 count = sActiveViews.count(); | 768 | // S32 count = sActiveViews.count(); |
769 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
770 | // See LLInventoryView::closeAll() on why we're doing it this way | ||
771 | S32 count = 0; | ||
772 | for (S32 idx = 0, cnt = sActiveViews.count(); idx < cnt; idx++) | ||
773 | { | ||
774 | if (!sActiveViews.get(idx)->isDead()) | ||
775 | count++; | ||
776 | } | ||
777 | // [/RLVa:KB] | ||
778 | |||
769 | if (count > 1) | 779 | if (count > 1) |
770 | { | 780 | { |
771 | destroy(); | 781 | destroy(); |
@@ -843,6 +853,13 @@ LLInventoryView* LLInventoryView::showAgentInventory(BOOL take_keyboard_focus) | |||
843 | return NULL; | 853 | return NULL; |
844 | } | 854 | } |
845 | 855 | ||
856 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
857 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWINV)) | ||
858 | { | ||
859 | return NULL; | ||
860 | } | ||
861 | // [/RLVa:KB] | ||
862 | |||
846 | LLInventoryView* iv = LLInventoryView::getActiveInventory(); | 863 | LLInventoryView* iv = LLInventoryView::getActiveInventory(); |
847 | #if 0 && !LL_RELEASE_FOR_DOWNLOAD | 864 | #if 0 && !LL_RELEASE_FOR_DOWNLOAD |
848 | if (sActiveViews.count() == 1) | 865 | if (sActiveViews.count() == 1) |