diff options
author | McCabe Maxsted | 2011-04-11 19:37:59 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-11 19:37:59 -0700 |
commit | 7f7af932b42c69d00b725738c9fad0187a023cb0 (patch) | |
tree | dad7005ed38128303bcc432d328ae45d4fb5376a /linden/indra/newview/llviewermenu.cpp | |
parent | Fixed string truncated in prefs > network (#841) (diff) | |
download | meta-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.cpp | 18 |
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 | ||
731 | void 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 | ||
733 | void init_client_menu(LLMenuGL* menu) | 749 | void init_client_menu(LLMenuGL* menu) |
734 | { | 750 | { |