From 09e7017f06286b6a0190bd3f72c768e4bf0309d3 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Mon, 1 Apr 2013 21:58:23 -0400 Subject: [PATCH] Added handleVisibilityChange to LLPanelPermissions TODO: Find out if this change is worthwhile by checking for log spam --- indra/newview/llpanelpermissions.cpp | 8 ++++++++ indra/newview/llpanelpermissions.h | 1 + 2 files changed, 9 insertions(+) diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp index e0af43a19..0686c4c54 100644 --- a/indra/newview/llpanelpermissions.cpp +++ b/indra/newview/llpanelpermissions.cpp @@ -168,6 +168,14 @@ LLPanelPermissions::~LLPanelPermissions() // base class will take care of everything } +// virtual +void LLPanelPermissions::handleVisibilityChange(BOOL new_visibility) +{ + llwarns << "Hey, does this warning show whenever you switch to this tab?" << llendl; // Find out if the addition of this function is actually worthwhile. + if (new_visibility) + refresh(); + LLPanel::handleVisibilityChange(new_visibility); +} void LLPanelPermissions::refresh() { diff --git a/indra/newview/llpanelpermissions.h b/indra/newview/llpanelpermissions.h index a4ccfffa9..4e8ccc0a9 100644 --- a/indra/newview/llpanelpermissions.h +++ b/indra/newview/llpanelpermissions.h @@ -57,6 +57,7 @@ public: virtual ~LLPanelPermissions(); virtual BOOL postBuild(); + virtual void handleVisibilityChange(BOOL new_visibility); // MANIPULATORS void refresh(); // refresh all labels as needed