diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2012-08-21 17:25:59 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2012-08-21 17:25:59 +0300 |
commit | 00346422b6554e0b982973e6f8f05f0335b99852 (patch) | |
tree | 48fb92d53c5ea1255b042019f42cbc7bd15900f6 | |
parent | a368d22d76ecd0b9729a966b6e9de24a642ab58d (diff) |
MAINT-1433 FIXED Register callback for "TopInfoBar.Action" in handleRightMouseDown
-rw-r--r-- | indra/newview/llpaneltopinfobar.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llpaneltopinfobar.cpp b/indra/newview/llpaneltopinfobar.cpp index 280cc11179..1830086da2 100644 --- a/indra/newview/llpaneltopinfobar.cpp +++ b/indra/newview/llpaneltopinfobar.cpp @@ -64,9 +64,6 @@ private: LLPanelTopInfoBar::LLPanelTopInfoBar(): mParcelChangedObserver(0) { - LLUICtrl::CommitCallbackRegistry::currentRegistrar() - .add("TopInfoBar.Action", boost::bind(&LLPanelTopInfoBar::onContextMenuItemClicked, this, _2)); - buildFromFile( "panel_topinfo_bar.xml"); } @@ -132,6 +129,11 @@ void LLPanelTopInfoBar::handleLoginComplete() BOOL LLPanelTopInfoBar::handleRightMouseDown(S32 x, S32 y, MASK mask) { + if(!LLUICtrl::CommitCallbackRegistry::getValue("TopInfoBar.Action")) + { + LLUICtrl::CommitCallbackRegistry::currentRegistrar() + .add("TopInfoBar.Action", boost::bind(&LLPanelTopInfoBar::onContextMenuItemClicked, this, _2)); + } show_topinfobar_context_menu(this, x, y); return TRUE; } |