diff options
| author | Paul ProductEngine <pguslisty@productengine.com> | 2011-12-08 18:48:22 +0200 |
|---|---|---|
| committer | Paul ProductEngine <pguslisty@productengine.com> | 2011-12-08 18:48:22 +0200 |
| commit | f75708a9c8a549da0f243d47cc02208821dab5ef (patch) | |
| tree | 776afb9cb2bdcea150cae7ffb36c515fe76e896b /indra/newview/llpanelmaininventory.cpp | |
| parent | 1231c86d2fc1f4a93c97e9c42e58c917f71b6718 (diff) | |
EXP-1598 FIXED (items from a second inventory window cannot be shared)
- Now select proper inventory floater (from all opened inventory floaters) to share items from.
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
| -rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 9944b51902..68ef13cd68 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -28,6 +28,7 @@ #include "llpanelmaininventory.h" #include "llagent.h" +#include "llagentcamera.h" #include "llavataractions.h" #include "lldndbutton.h" #include "lleconomy.h" @@ -294,7 +295,13 @@ void LLPanelMainInventory::closeAllFolders() void LLPanelMainInventory::newWindow() { - LLFloaterInventory::showAgentInventory(); + static S32 instance_num = 0; + instance_num = (instance_num + 1) % S32_MAX; + + if (!gAgentCamera.cameraMouselook()) + { + LLFloaterReg::showTypedInstance<LLFloaterSidePanelContainer>("inventory", LLSD(instance_num)); + } } void LLPanelMainInventory::doCreate(const LLSD& userdata) |
