diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelinventory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanelinventory.cpp b/linden/indra/newview/llpanelinventory.cpp index a7dc298..0223a56 100644 --- a/linden/indra/newview/llpanelinventory.cpp +++ b/linden/indra/newview/llpanelinventory.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llpanelinventory.cpp | 2 | * @file llpanelinventory.cpp |
3 | * @brief LLPanelInventory class implementation | 3 | * @brief LLPanelInventory class implementation |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 7 | * Copyright (c) 2002-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | //***************************************************************************** | 32 | //***************************************************************************** |
@@ -1849,11 +1852,8 @@ void LLPanelInventory::refresh() | |||
1849 | { | 1852 | { |
1850 | //llinfos << "LLPanelInventory::refresh()" << llendl; | 1853 | //llinfos << "LLPanelInventory::refresh()" << llendl; |
1851 | BOOL has_inventory = FALSE; | 1854 | BOOL has_inventory = FALSE; |
1852 | LLSelectNode* node = gSelectMgr->getSelection()->getFirstRootNode(); | 1855 | const BOOL non_root_ok = TRUE; |
1853 | if(!node) | 1856 | LLSelectNode* node = gSelectMgr->getSelection()->getFirstRootNode(NULL, non_root_ok); |
1854 | { | ||
1855 | node = gSelectMgr->getSelection()->getFirstNode(); | ||
1856 | } | ||
1857 | if(node) | 1857 | if(node) |
1858 | { | 1858 | { |
1859 | LLViewerObject* object = node->getObject(); | 1859 | LLViewerObject* object = node->getObject(); |