summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneltopinfobar.h
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-07-02 16:26:43 +0300
committerVadim Savchuk <vsavchuk@productengine.com>2010-07-02 16:26:43 +0300
commit15561d0d540df27426c0cae1837ac42c3cb83a56 (patch)
tree0ca49f2c9abfe11f892d76de95e41fbb1eb390ea /indra/newview/llpaneltopinfobar.h
parent5285a7fa7ec67c2337c5f071e6785b143e24c9a6 (diff)
parent4ffcfe0a5fe21dcb49d79851eb43bd5d80623e0d (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llpaneltopinfobar.h')
-rw-r--r--indra/newview/llpaneltopinfobar.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llpaneltopinfobar.h b/indra/newview/llpaneltopinfobar.h
index e417a06a64..6e6fbc08ab 100644
--- a/indra/newview/llpaneltopinfobar.h
+++ b/indra/newview/llpaneltopinfobar.h
@@ -40,10 +40,12 @@ class LLTextBox;
class LLIconCtrl;
class LLParcelChangeObserver;
-class LLPanelTopInfoBar : public LLPanel, public LLSingleton<LLPanelTopInfoBar>
+class LLPanelTopInfoBar : public LLPanel, public LLSingleton<LLPanelTopInfoBar>, private LLDestroyClass<LLPanelTopInfoBar>
{
LOG_CLASS(LLPanelTopInfoBar);
+ friend class LLDestroyClass<LLPanelTopInfoBar>;
+
public:
LLPanelTopInfoBar();
~LLPanelTopInfoBar();
@@ -145,6 +147,17 @@ private:
*/
void setParcelInfoText(const std::string& new_text);
+ /**
+ * Implementation of LLDestroyClass<LLSideTray>
+ */
+ static void destroyClass()
+ {
+ if (LLPanelTopInfoBar::instanceExists())
+ {
+ LLPanelTopInfoBar::getInstance()->setEnabled(FALSE);
+ }
+ }
+
LLButton* mInfoBtn;
LLTextBox* mParcelInfoText;
LLTextBox* mDamageText;