summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-12-17 21:01:10 -0500
committerLoren Shih <seraph@lindenlab.com>2009-12-17 21:01:10 -0500
commit541f7f88c257838d79c09e73cfbec4a638c1679c (patch)
tree3a4d98ef88e2d4157a9c5f19cd51e9c42de95a98 /indra/newview
parent32aea4e72d83852fa24d71d6c8bbbf81d2be5741 (diff)
EXT-3557 : CTRL+I should bring up either InventorySP or InventoryFloater
Hitting CTRL+I when InventorySP is open will now bring up InventoryFloaters.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermenu.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index f1ae573c32..791e3a1948 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -56,6 +56,7 @@
#include "llfloatercustomize.h"
#include "llfloaterchatterbox.h"
#include "llfloatergodtools.h"
+#include "llfloaterinventory.h"
#include "llfloaterland.h"
#include "llfloaterpay.h"
#include "llfloaterreporter.h"
@@ -5610,7 +5611,15 @@ class LLShowSidetrayPanel : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
std::string panel_name = userdata.asString();
- LLSideTray::getInstance()->showPanel(panel_name, LLSD());
+ // Open up either the sidepanel or new floater.
+ if (LLSideTray::getInstance()->isPanelActive(panel_name))
+ {
+ LLFloaterInventory::showAgentInventory();
+ }
+ else
+ {
+ LLSideTray::getInstance()->showPanel(panel_name, LLSD());
+ }
return true;
}
};