diff options
Diffstat (limited to 'indra/llui/llpanel.cpp')
| -rw-r--r-- | indra/llui/llpanel.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/indra/llui/llpanel.cpp b/indra/llui/llpanel.cpp index 76664d93a7..92d045d114 100644 --- a/indra/llui/llpanel.cpp +++ b/indra/llui/llpanel.cpp @@ -907,7 +907,7 @@ LLPanel *LLPanel::childGetVisibleTab(const std::string& id) const  	return NULL;  } -void LLPanel::childSetTabChangeCallback(const std::string& id, const std::string& tabname, void (*on_tab_clicked)(void*, bool), void *userdata) +void LLPanel::childSetTabChangeCallback(const std::string& id, const std::string& tabname, void (*on_tab_clicked)(void*, bool), void *userdata, void (*on_precommit)(void*,bool))  {  	LLTabContainer* child = getChild<LLTabContainer>(id);  	if (child) @@ -917,6 +917,10 @@ void LLPanel::childSetTabChangeCallback(const std::string& id, const std::string  		{  			child->setTabChangeCallback(panel, on_tab_clicked);  			child->setTabUserData(panel, userdata); +			if (on_precommit) +			{ +				child->setTabPrecommitChangeCallback(panel, on_precommit); +			}  		}  	}  } | 
