From b46ba199fffbcbf70a42b28d2fa6b72d38d77771 Mon Sep 17 00:00:00 2001 From: Andrew Polunin Date: Tue, 11 May 2010 11:34:36 +0300 Subject: EXT-7075 FIXED Map button now is always enabled and shows current user location if no other item is selected - Added new pure virtual member function isSingleItemSelected() to the LLPanelPlacesTab. It is used in the LLPanelPlaces class inside onShowOnMapButtonClicked() to check if something was selected on the active panel. If so then selection is shown on the world map. Otherwise current agent position is shown on the world map. - Implemented isSingleItemSelected() in the both LLPanelPlacesTab derived classes: LLLandmarksPanel and LLTeleportHistoryPanel - Removed functionality which disables Map button if no selection is made Reviewed by Sergey Litovchuk at https://codereview.productengine.com/secondlife/r/355/ --HG-- branch : product-engine --- indra/newview/llpanelteleporthistory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/llpanelteleporthistory.h') diff --git a/indra/newview/llpanelteleporthistory.h b/indra/newview/llpanelteleporthistory.h index a456ca506f..1f2be63dc2 100644 --- a/indra/newview/llpanelteleporthistory.h +++ b/indra/newview/llpanelteleporthistory.h @@ -77,6 +77,7 @@ public: /*virtual*/ void onTeleport(); ///*virtual*/ void onCopySLURL(); /*virtual*/ void updateVerbs(); + /*virtual*/ bool isSingleItemSelected(); private: @@ -123,4 +124,6 @@ private: LLHandle mGearMenuHandle; }; + + #endif //LL_LLPANELTELEPORTHISTORY_H -- cgit v1.2.3