summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellandmarks.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2009-11-02 12:12:26 +0200
committerMike Antipov <mantipov@productengine.com>2009-11-02 12:12:26 +0200
commit50047b1ea598dc827a6b44e15211acadec06f9af (patch)
tree1d3b5894c5282af0db294754aedb8d0861373a58 /indra/newview/llpanellandmarks.cpp
parente873695e7bd246a95e8368e11d6b18acd63f7230 (diff)
Fixed normal bug EXT-2001 ( [BSI] Can select multiple Landmarks in Places side panel and still click "Map" or "Teleport")
- process enable state for "Teleport" & Show on Map" buttons in the same way as appropriate gear&context menu items --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llpanellandmarks.cpp')
-rw-r--r--indra/newview/llpanellandmarks.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp
index 48a93f0d42..6bff01ee5e 100644
--- a/indra/newview/llpanellandmarks.cpp
+++ b/indra/newview/llpanellandmarks.cpp
@@ -184,9 +184,8 @@ void LLLandmarksPanel::updateVerbs()
if (!isTabVisible())
return;
- BOOL enabled = isLandmarkSelected();
- mTeleportBtn->setEnabled(enabled);
- mShowOnMapBtn->setEnabled(enabled);
+ mTeleportBtn->setEnabled(isActionEnabled("teleport"));
+ mShowOnMapBtn->setEnabled(isActionEnabled("show_on_map"));
// TODO: mantipov: Uncomment when mShareBtn is supported
// Share button should be enabled when neither a folder nor a landmark is selected