diff options
| author | skolb <none@none> | 2009-12-01 13:34:16 -0800 |
|---|---|---|
| committer | skolb <none@none> | 2009-12-01 13:34:16 -0800 |
| commit | 0ab6d36094cc52eea063f6d3b05262c111857f29 (patch) | |
| tree | 95840e0bf49f744520649b030d4bd65b99275bcf /indra/newview/llfloaterinventory.cpp | |
| parent | 6dd3f54924b57224298f6d76c766b403d165783f (diff) | |
| parent | 6a888b653a1ee5ed0eeedd8994ff59652f2913aa (diff) | |
Merge
Diffstat (limited to 'indra/newview/llfloaterinventory.cpp')
| -rw-r--r-- | indra/newview/llfloaterinventory.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llfloaterinventory.cpp b/indra/newview/llfloaterinventory.cpp index db38fc0fb3..4a2e1913cd 100644 --- a/indra/newview/llfloaterinventory.cpp +++ b/indra/newview/llfloaterinventory.cpp @@ -107,10 +107,14 @@ LLInventoryPanel* LLFloaterInventory::getPanel() // static LLFloaterInventory* LLFloaterInventory::showAgentInventory() { + // Hack to generate semi-unique key for each inventory floater. + static S32 instance_num = 0; + instance_num = (instance_num + 1) % S32_MAX; + LLFloaterInventory* iv = NULL; if (!gAgent.cameraMouselook()) { - iv = LLFloaterReg::showTypedInstance<LLFloaterInventory>("inventory", LLSD()); + iv = LLFloaterReg::showTypedInstance<LLFloaterInventory>("inventory", LLSD(instance_num)); } return iv; } |
