From 348518255289b950ed4786cb3108d364a00bd360 Mon Sep 17 00:00:00 2001 From: Andrew Dyukov Date: Tue, 1 Dec 2009 21:26:02 +0200 Subject: Fixed normal bug EXT-2786 (My Landmarks: context menu updates after second right-click). --HG-- branch : product-engine --- indra/newview/llpanellandmarks.cpp | 2 ++ indra/newview/llpanellandmarks.h | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index 0d45635a0e..3edb8abc73 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -378,6 +378,8 @@ void LLLandmarksPanel::initLandmarksPanel(LLInventorySubTreePanel* inventory_lis root_folder->setupMenuHandle(LLInventoryType::IT_LANDMARK, mGearLandmarkMenu->getHandle()); } + root_folder->setParentLandmarksPanel(this); + // save initial folder state to avoid incorrect work while switching between Landmarks & Teleport History tabs // See EXT-1609. inventory_list->saveFolderState(); diff --git a/indra/newview/llpanellandmarks.h b/indra/newview/llpanellandmarks.h index fa40172ecf..bee141d051 100644 --- a/indra/newview/llpanellandmarks.h +++ b/indra/newview/llpanellandmarks.h @@ -62,6 +62,10 @@ public: void onSelectionChange(LLInventorySubTreePanel* inventory_list, const std::deque &items, BOOL user_action); void onSelectorButtonClicked(); + void setCurrentSelectedList(LLInventorySubTreePanel* inventory_list) + { + mCurrentSelectedList = inventory_list; + } protected: /** -- cgit v1.2.3