summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSergei Litovchuk <slitovchuk@productengine.com>2010-01-04 18:08:26 +0200
committerSergei Litovchuk <slitovchuk@productengine.com>2010-01-04 18:08:26 +0200
commit3c5976981dd06ccca45d9d2b9024a6c72fd7ea49 (patch)
tree048272250f0cb3be22a246d25126d22411dd3df8 /indra
parentf1546c299a42f661d05a962f5ecd83fb4f8913c6 (diff)
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
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelteleporthistory.cpp7
1 files changed, 7 insertions, 0 deletions
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();
+ }
}