From 3c5976981dd06ccca45d9d2b9024a6c72fd7ea49 Mon Sep 17 00:00:00 2001 From: Sergei Litovchuk Date: Mon, 4 Jan 2010 18:08:26 +0200 Subject: Fixed low bug (EXT-3768) Teleport & Map buttons are enabled when nothing is selected in the Teleport History panel. - Added reseting selection upon closing accordion tab to disable "Teleport" and "Map" buttons for hidden item. --HG-- branch : product-engine --- indra/newview/llpanelteleporthistory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra') diff --git a/indra/newview/llpanelteleporthistory.cpp b/indra/newview/llpanelteleporthistory.cpp index 245f694ac6..65a3d9d41b 100644 --- a/indra/newview/llpanelteleporthistory.cpp +++ b/indra/newview/llpanelteleporthistory.cpp @@ -1045,4 +1045,11 @@ void LLTeleportHistoryPanel::onAccordionExpand(LLUICtrl* ctrl, const LLSD& param bool expanded = param.asBoolean(); // Save accordion tab state to restore it in refresh() setAccordionCollapsedByUser(ctrl, !expanded); + + // Reset selection upon accordion being collapsed + // to disable "Teleport" and "Map" buttons for hidden item. + if (!expanded && mLastSelectedFlatlList) + { + mLastSelectedFlatlList->resetSelection(); + } } -- cgit v1.2.3