summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpicks.cpp
diff options
context:
space:
mode:
authorLynx Linden <lynx@lindenlab.com>2009-12-21 16:45:23 +0000
committerLynx Linden <lynx@lindenlab.com>2009-12-21 16:45:23 +0000
commit82b0a42f86b9eb0ce45635cd91d689e9400e7824 (patch)
tree44712b32234043ade9e4c1fbfb79182278e0f0a3 /indra/newview/llpanelpicks.cpp
parentbf7494017f5d90624243e5069dea9342c6b1869c (diff)
DEV-44357: Close classified/pick details when closing Pick panel.
When we close the Pick panel, we now also close any specific classified or pick that was opened from the pick panel.
Diffstat (limited to 'indra/newview/llpanelpicks.cpp')
-rw-r--r--indra/newview/llpanelpicks.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp
index 4d22d96072..69fa110d11 100644
--- a/indra/newview/llpanelpicks.cpp
+++ b/indra/newview/llpanelpicks.cpp
@@ -485,6 +485,18 @@ void LLPanelPicks::onOpen(const LLSD& key)
LLPanelProfileTab::onOpen(key);
}
+void LLPanelPicks::onClosePanel()
+{
+ if (mPanelClassifiedInfo)
+ {
+ onPanelClassifiedClose(mPanelClassifiedInfo);
+ }
+ if (mPanelPickInfo)
+ {
+ onPanelPickClose(mPanelPickInfo);
+ }
+}
+
void LLPanelPicks::onListCommit(const LLFlatListView* f_list)
{
// Make sure only one of the lists has selection.