summaryrefslogtreecommitdiff
path: root/indra/newview/llsidepanelinventory.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-07-08 16:06:49 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-07-08 16:06:49 -0700
commitd7318bf9f07c1b043a9b4f50ce38b78eb3985e36 (patch)
tree80575768d0636caaa93b63bc5d39cafa6b21cf83 /indra/newview/llsidepanelinventory.cpp
parent5edd6b606b9bc011c64c890200a9fb54072e9fde (diff)
parent0553d47045e65a0249ec7ee514078161a4bec97e (diff)
merge
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
-rw-r--r--indra/newview/llsidepanelinventory.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp
index fc049f1854..6a3a6200e9 100644
--- a/indra/newview/llsidepanelinventory.cpp
+++ b/indra/newview/llsidepanelinventory.cpp
@@ -165,6 +165,13 @@ void handleInventoryDisplayInboxChanged()
sidepanel_inventory->enableInbox(gSavedSettings.getBOOL("InventoryDisplayInbox"));
}
+void handleInventoryDisplayOutboxChanged()
+{
+ LLSidepanelInventory* sidepanel_inventory = dynamic_cast<LLSidepanelInventory*>(LLSideTray::getInstance()->getPanel("sidepanel_inventory"));
+
+ sidepanel_inventory->enableOutbox(gSavedSettings.getBOOL("InventoryDisplayOutbox"));
+}
+
BOOL LLSidepanelInventory::postBuild()
{
// UI elements from inventory panel
@@ -258,6 +265,7 @@ BOOL LLSidepanelInventory::postBuild()
}
gSavedSettings.getControl("InventoryDisplayInbox")->getCommitSignal()->connect(boost::bind(&handleInventoryDisplayInboxChanged));
+ gSavedSettings.getControl("InventoryDisplayOutbox")->getCommitSignal()->connect(boost::bind(&handleInventoryDisplayOutboxChanged));
return TRUE;
}
@@ -284,12 +292,18 @@ void LLSidepanelInventory::handleLoginComplete()
if (!inbox_id.isNull())
{
observeInboxModifications(inbox_id);
+
+ // Enable the display of the inbox if it exists
+ enableInbox(true);
}
// Set up observer for outbox changes, if we have an outbox already
if (!outbox_id.isNull())
{
observeOutboxModifications(outbox_id);
+
+ // Enable the display of the outbox if it exists
+ enableOutbox(true);
}
}