summaryrefslogtreecommitdiff
path: root/indra/newview/llsidepanelinventory.cpp
diff options
context:
space:
mode:
authorskolb <none@none>2009-12-03 14:33:38 -0800
committerskolb <none@none>2009-12-03 14:33:38 -0800
commitfaa188322a72b86b6a167834a4d2cd664da112bc (patch)
treed498ee9f8642cf17d0b4555b0ad02db42ec73bb2 /indra/newview/llsidepanelinventory.cpp
parentec34503e0193514ffbb1ccb1249013adb0a9e320 (diff)
parent4535fd64fbee1ee0dd3bfe54c090cfa9c56a11b6 (diff)
Merge
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
-rw-r--r--indra/newview/llsidepanelinventory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp
index 824def3d92..9ab459080e 100644
--- a/indra/newview/llsidepanelinventory.cpp
+++ b/indra/newview/llsidepanelinventory.cpp
@@ -277,3 +277,16 @@ LLInventoryItem *LLSidepanelInventory::getSelectedItem()
LLInventoryItem *item = gInventory.getItem(item_id);
return item;
}
+
+LLInventoryPanel *LLSidepanelInventory::getActivePanel()
+{
+ if (!getVisible())
+ {
+ return NULL;
+ }
+ if (mInventoryPanel->getVisible())
+ {
+ return mPanelMainInventory->getActivePanel();
+ }
+ return NULL;
+}