Added handleVisibilityChange to LLPanelPermissions

TODO: Find out if this change is worthwhile by checking for log spam
This commit is contained in:
Lirusaito
2013-04-01 21:58:23 -04:00
committed by Melanie
parent eacd1d7eb9
commit 09e7017f06
2 changed files with 9 additions and 0 deletions

View File

@@ -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()
{

View File

@@ -57,6 +57,7 @@ public:
virtual ~LLPanelPermissions();
virtual BOOL postBuild();
virtual void handleVisibilityChange(BOOL new_visibility);
// MANIPULATORS
void refresh(); // refresh all labels as needed