From b1b9ef14f5bf323b2d4caaa4b88d9727f6197567 Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Wed, 9 Dec 2009 09:56:34 +0200 Subject: Fixed critical bug EXT-3094 (Content of accordions disappears after collapsing all folders in My "Landmarks" tab and switching to "Teleport history" tab and back) Reason: Folder state of loaded folders was not saved before switching to Teleport history and back Due to inventory loading was changed to fetch items in background it is impossible to save folder state while initializing of an Inventory panel. Inventory observer was implemented to save folder states for Inventory Panels in all accordions. Reviwed by Seth ProductEngine --HG-- branch : product-engine --- indra/newview/llpanellandmarks.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/llpanellandmarks.h') diff --git a/indra/newview/llpanellandmarks.h b/indra/newview/llpanellandmarks.h index bee141d051..b0e537f647 100644 --- a/indra/newview/llpanellandmarks.h +++ b/indra/newview/llpanellandmarks.h @@ -67,6 +67,11 @@ public: mCurrentSelectedList = inventory_list; } + /** + * Saves folder state for all Inventory Panels if there are no applied filter. + */ + void saveFolderStateIfNoFilter(); + protected: /** * @return true - if current selected panel is not null and selected item is a landmark @@ -151,6 +156,7 @@ private: LLMenuGL* mGearFolderMenu; LLMenuGL* mMenuAdd; LLInventorySubTreePanel* mCurrentSelectedList; + LLInventoryObserver* mInventoryObserver; LLPanel* mListCommands; bool mSortByDate; -- cgit v1.2.3