diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index 6bff01ee5e870642503c717bc96370af87c4ab69..c9598a2576892f972a11802348289035b0e5b334 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -184,8 +184,9 @@ void LLLandmarksPanel::updateVerbs() if (!isTabVisible()) return; - mTeleportBtn->setEnabled(isActionEnabled("teleport")); - mShowOnMapBtn->setEnabled(isActionEnabled("show_on_map")); + bool landmark_selected = isLandmarkSelected(); + mTeleportBtn->setEnabled(landmark_selected && isActionEnabled("teleport")); + mShowOnMapBtn->setEnabled(landmark_selected && 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