diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-03-08 02:41:11 +0200 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-03-08 02:41:11 +0200 | 
| commit | 783a802abc63efd3b55d5b38c76c03d87d47bf75 (patch) | |
| tree | 79d5fb25574f9c60fcb98bdedc79186844e45410 /indra/llui | |
| parent | ea94cda5f5bb9a426782ee7c7aebb1095ba444c1 (diff) | |
SL-19359 Show Received Items panel in all new Inventory floaters
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/lluictrl.cpp | 9 | ||||
| -rw-r--r-- | indra/llui/lluictrl.h | 1 | 
2 files changed, 10 insertions, 0 deletions
| diff --git a/indra/llui/lluictrl.cpp b/indra/llui/lluictrl.cpp index 2196ba201b..21afcae7c3 100644 --- a/indra/llui/lluictrl.cpp +++ b/indra/llui/lluictrl.cpp @@ -531,6 +531,15 @@ void LLUICtrl::setControlVariable(LLControlVariable* control)  	}  } +void LLUICtrl::removeControlVariable() +{ +    if (mControlVariable) +    { +        mControlConnection.disconnect(); +        mControlVariable = NULL; +    } +} +  //virtual  void LLUICtrl::setControlName(const std::string& control_name, LLView *context)  { diff --git a/indra/llui/lluictrl.h b/indra/llui/lluictrl.h index 67dd24341c..be1c7dd0b6 100644 --- a/indra/llui/lluictrl.h +++ b/indra/llui/lluictrl.h @@ -175,6 +175,7 @@ public:  	bool setControlValue(const LLSD& value);  	void setControlVariable(LLControlVariable* control);  	virtual void setControlName(const std::string& control, LLView *context = NULL); +    void removeControlVariable();  	LLControlVariable* getControlVariable() { return mControlVariable; }  | 
