From a4cc162ca8a83b9f0fa2936f1678c8b71c44a008 Mon Sep 17 00:00:00 2001 From: Andrew Polunin Date: Tue, 17 Nov 2009 21:26:12 +0200 Subject: - fixed normal bug EXT-2401 Corrupted Place Profile panel is opened after canceling of Pick creation from teleport history panel - fixed normal bug EXT-2470 Corrupted Place Profile panel is opened after canceling of Pick creation from My Landmarks tab (NOTE: the same code fixes both) --HG-- branch : product-engine --- indra/newview/llpanelplaces.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'indra/newview/llpanelplaces.cpp') diff --git a/indra/newview/llpanelplaces.cpp b/indra/newview/llpanelplaces.cpp index eb10d97b37..84232f20d1 100644 --- a/indra/newview/llpanelplaces.cpp +++ b/indra/newview/llpanelplaces.cpp @@ -80,7 +80,6 @@ static const std::string TELEPORT_HISTORY_INFO_TYPE = "teleport_history"; // Helper functions static bool is_agent_in_selected_parcel(LLParcel* parcel); static void onSLURLBuilt(std::string& slurl); -static void setAllChildrenVisible(LLView* view, BOOL visible); //Observer classes class LLPlacesParcelObserver : public LLParcelObserver @@ -700,8 +699,6 @@ void LLPanelPlaces::onBackButtonClicked() void LLPanelPlaces::togglePickPanel(BOOL visible) { - setAllChildrenVisible(this, !visible); - if (mPickPanel) mPickPanel->setVisible(visible); } @@ -911,16 +908,3 @@ static void onSLURLBuilt(std::string& slurl) LLNotifications::instance().add("CopySLURL", args); } - -static void setAllChildrenVisible(LLView* view, BOOL visible) -{ - const LLView::child_list_t* children = view->getChildList(); - for (LLView::child_list_const_iter_t child_it = children->begin(); child_it != children->end(); ++child_it) - { - LLView* child = *child_it; - if (child->getParent() == view) - { - child->setVisible(visible); - } - } -} -- cgit v1.2.3