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