aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-04-11 19:37:59 -0700
committerMcCabe Maxsted2011-04-11 19:37:59 -0700
commit7f7af932b42c69d00b725738c9fad0187a023cb0 (patch)
treedad7005ed38128303bcc432d328ae45d4fb5376a /linden/indra/newview/llviewermenu.cpp
parentFixed string truncated in prefs > network (#841) (diff)
downloadmeta-impy-7f7af932b42c69d00b725738c9fad0187a023cb0.zip
meta-impy-7f7af932b42c69d00b725738c9fad0187a023cb0.tar.gz
meta-impy-7f7af932b42c69d00b725738c9fad0187a023cb0.tar.bz2
meta-impy-7f7af932b42c69d00b725738c9fad0187a023cb0.tar.xz
Fixed #599: 'Account History'/'Manage My Account' use SL-specific URLs (since we don't get these from any grids, disable 'em for now)
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index a22f704..b641ce9 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -725,10 +725,26 @@ void init_menus()
725 gLoginMenuBarView->setBackgroundColor( color ); 725 gLoginMenuBarView->setBackgroundColor( color );
726 726
727 gMenuHolder->addChild(gLoginMenuBarView); 727 gMenuHolder->addChild(gLoginMenuBarView);
728
729} 728}
730 729
731 730
731void update_grid_specific_menus()
732{
733 if (!gMenuHolder || !gMenuBarView)
734 {
735 return;
736 }
737 else
738 {
739 // Disable these when we're not on Second Life grids
740 // (or don't have URLS for them if non-SL grids start using 'em) -- MC
741 gMenuHolder->childSetEnabled("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife());
742 gMenuHolder->childSetVisible("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife());
743 gMenuHolder->childSetEnabled("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife());
744 gMenuHolder->childSetVisible("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife());
745 }
746}
747
732 748
733void init_client_menu(LLMenuGL* menu) 749void init_client_menu(LLMenuGL* menu)
734{ 750{