diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-07-08 16:06:49 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-07-08 16:06:49 -0700 |
commit | d7318bf9f07c1b043a9b4f50ce38b78eb3985e36 (patch) | |
tree | 80575768d0636caaa93b63bc5d39cafa6b21cf83 /indra/newview/llsidepanelinventory.cpp | |
parent | 5edd6b606b9bc011c64c890200a9fb54072e9fde (diff) | |
parent | 0553d47045e65a0249ec7ee514078161a4bec97e (diff) |
merge
Diffstat (limited to 'indra/newview/llsidepanelinventory.cpp')
-rw-r--r-- | indra/newview/llsidepanelinventory.cpp | 14 |
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); } } |